Jump to content

[LE] NPC won't walk to location upon completion of quest


Recommended Posts

I have a custom NPC which I have hooked up to a bunch of dialog (working correctly). At some point, I complete a quest by talking to said NPC. I want this NPC to walk to a location far away (from near falkreath to just outside markarth). I make a the following script call during the final dialog topic:

getowningquest().SetObjectiveCompleted(40)
getowningquest().SetStage(50)
ActorRef.PathToReference(TargetActor, 1.0)

I know this PathToReference call is returning true (due to some debugging not visible in the snippet). But my NPC just sits there and doesnt move. The area is navmeshed, ActorRef = the actor I want to move, TargetActor is the NPC I want the ActorRef to walk to.

 

Can somebody explain what I'm doing wrong here?

Link to comment
Share on other sites

I'm not sure PathToReference can be trusted, especially not with such great distances. Use a package conditioned to run when the quest is completed instead. Then run EvaluatePackage() in the dialogue script fragment.

Edited by wormple12
Link to comment
Share on other sites

  • Recently Browsing   0 members

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