Wolfganger Posted November 15, 2012 Share Posted November 15, 2012 (For those who have been familiar with my recent posts, I finally got the quest to start up. :thumbsup: ) Now to business. What do I do to make it so that an actor runs away from the player towards their editor location after completing an objective? I tried using MoveToMyEditorLocation() but that just instantly teleports them.(I want them to run away before moving) -or- Is there a command that tells them to "travel" to their editor location?(Kinda like how Delphine travels to Kynesgrove?) Link to comment Share on other sites More sharing options...
Raccoonswordsmen Posted November 15, 2012 Share Posted November 15, 2012 On 11/15/2012 at 2:32 AM, Wolfganger said: (For those who have been familiar with my recent posts, I finally got the quest to start up. :thumbsup: ) Now to business. What do I do to make it so that an actor runs away from the player towards their editor location after completing an objective? I tried using MoveToMyEditorLocation() but that just instantly teleports them.(I want them to run away before moving) -or- Is there a command that tells them to "travel" to their editor location?(Kinda like how Delphine travels to Kynesgrove?) I'll help you if you help me man XD Link to comment Share on other sites More sharing options...
steve40 Posted November 16, 2012 Share Posted November 16, 2012 (edited) PathToReference() is probably what you are looking for, BUT, you need to have a marker or reference in place for the NPC to travel to. I don't think it will work with a Location form, so simply doing something like: Location myEditorLocation = myNPC.GetEditorLocation() myNPC.PathToReference(myEditorLocation, 1.0) probably won't work :( Also, I don't think you can simply use PlaceAtMe to put a marker at a Location, it needs an ObjectReference. A work-around might be to store the NPC's current coordinates, silently move the NPC back to its editor location, then do a PlaceAtMe to put a hidden marker at the NPC, then move the NPC back to where he was before using the coordinates that you stored earlier (hopefully it happens so fast that the player doesn't even notice that the NPC was moved), then force the NPC to path to the hidden marker, then delete the hidden marker :) Of course, if you have a specific actor in mind, then you could simply place a hidden marker at their editor location using the CK, then you won't have to jump through so many hoops in your script. Alternatively, maybe an AI Package will do the job? I'm not very familiar with packages so I can't tell you how to do it. Edited November 16, 2012 by steve40 Link to comment Share on other sites More sharing options...
Recommended Posts