Jump to content

[LE] Getting the actor reference of a actor placed using placeactoratme


Recommended Posts

I'm making a spell to "animate" objects like swords. I have it so it gives a perk that allows the player to select a weapon and "animate it". It places an invisible npc that needs to be given the weapon it was placed at. Therfore I need it's actor reference. Since you can't use

Actor animatedObject = akTargetRef.PlaceActorAtMe("the actor I'm placing")

in skyrim's papyrus what sould I do?

Link to comment
Share on other sites

You should be able to do exactly that, PlaceActorAtMe's return value is the reference to the actor that was placed (as Actor not ObjectReference). In the same manner that PlaceAtMe gives an objectreference to what was placed. Check the examples on the wiki:

 

https://www.creationkit.com/index.php?title=PlaceActorAtMe_-_ObjectReference

https://www.creationkit.com/index.php?title=PlaceAtMe_-_ObjectReference

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...