rbddc12 Posted May 15, 2016 Share Posted May 15, 2016 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 More sharing options...
ThoraldGM Posted May 15, 2016 Share Posted May 15, 2016 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 More sharing options...
rbddc12 Posted May 15, 2016 Author Share Posted May 15, 2016 Thanks, I appreciate it Link to comment Share on other sites More sharing options...
Recommended Posts