Jump to content

UseWeapon package isn't firing after an NPC.Moveto(Location) script


Recommended Posts

I have this snippet of script in a quest stage. Bob has a UseWeapon package that activates successfully when the quest stage triggers. However, when I uncomment the "Bob.Moveto" line, it moves Bob successfully--but stops the UseWeapon package from activating, even if I place a "Bob.EvaluatePackage()" afterward.

Any ideas why? It seems I can't move Bob to his house and activate the UseWeapon package...

SetObjectiveCompleted(30)
Bob.EvaluatePackage()
; Bob.Moveto(BobHouse)

Bob.EvaluatePackage()

Thanks!

Link to comment
Share on other sites

MoveTo() may not fully complete before EvaluatePackage()

If the actor is supposed to be 3d loaded (cant remember if EvaluatePackage actually works with unloaded 3d) you can add;

Bob.Moveto(BobHouse)
Bob.WaitFor3dLoad()
(Bob as Actor).EvaluatePackage()

Link to comment
Share on other sites

  • Recently Browsing   0 members

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