Ancient76 Posted March 31, 2018 Posted March 31, 2018 I need to spawn an actor after certain dialog. What's the best way to do this? My actor is in different cell, a house. Maybe through dialog views and papyrus fragment?
TheWormpie Posted March 31, 2018 Posted March 31, 2018 Yep. You're looking for MoveTo to move a specific actor from one location to another. Bonus info: You can also use PlaceActorAtMe if you just want an instance of a certain actorbase spawned.
Ancient76 Posted March 31, 2018 Author Posted March 31, 2018 On 3/31/2018 at 7:16 PM, wormple12 said: Yep. You're looking for MoveTo to move a specific actor from one location to another. Bonus info: You can also use PlaceActorAtMe if you just want an instance of a certain actorbase spawned. How would this look in the papyrus fragment, with "moveto" function? Can you show me short example?
TheWormpie Posted March 31, 2018 Posted March 31, 2018 There's plenty of examples on the page I linked you to. You need to make an actor property for your spawned actor and a objectreference property for your destination marker, then fill the properties with those references. SpawnedActorRef.MoveTo(DestinationMarkerRef) is the syntax.
Ancient76 Posted April 3, 2018 Author Posted April 3, 2018 I did it. It works. The syntax was a little bit confusing for me. Thank you.
Recommended Posts