Jump to content

Recommended Posts

Posted

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!

Posted

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()

Posted

Yes! I needed to make this change, and also I needed to uncheck all of the dialogue flags on the UseWeapon package. These things got it working. Thank you!

  • Recently Browsing   0 members

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