Jump to content

Any way to change an NPC's Package with scripting?


rbddc12

Recommended Posts

So I'm working on a mod and I want to be able to change an NPC's package using a script or papyrus fragment that is run at the end of a scene and I can't seem to find a way of doing it.

 

Any help would be appreciated

 

Thanks

Link to comment
Share on other sites

You could:

 

- create global variable MySceneDone

- place package you want to run at top of NPC's list

- set condition on that package, only runs if MySceneDone == 1

- in scene end fragment, SetValue(1) on MySceneDone and force NPC to EvaluatePackage*

 

If you want to never run the package after that one time, SetValue(2) on MySceneDone at the end of it and condition will not be met whenever stack reevaluates. I'm on my phone so can't test any of this, but I've been messing with AI too so this should work in theory.

 

* http://www.creationkit.com/fallout4/index.php?title=EvaluatePackage_-_Actor

Link to comment
Share on other sites

  • Recently Browsing   0 members

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