Lolz1234567 Posted September 14, 2017 Share Posted September 14, 2017 I have an NPC who has a base package of them crying, then once i do an action they stop and start following you, and it works fine. Although, as soon as I enter a new cell or worldspace or anything, they stop following and start the crying animation. I'm not quite sure whats up with it. I appreciate any help in advance. Link to comment Share on other sites More sharing options...
madmongo Posted September 14, 2017 Share Posted September 14, 2017 Are you using addscriptpackage? If so, that's fairly typical behavior for doing it that way. It's better to have each package already added to the NPC with flags set to enable and disable them. Any time you change the flags, do an evp (evaluate package) on the NPC to make sure they evaluate and choose the proper package. Is this NPC supposed to be a regular companion with a command wheel? Link to comment Share on other sites More sharing options...
Lolz1234567 Posted September 14, 2017 Author Share Posted September 14, 2017 No, I'll try it by adding both of them and disabling like you said. Ill update if it works Link to comment Share on other sites More sharing options...
Mktavish Posted September 14, 2017 Share Posted September 14, 2017 (edited) Are you using addscriptpackage? If so, that's fairly typical behavior for doing it that way. It's better to have each package already added to the NPC with flags set to enable and disable them. Any time you change the flags, do an evp (evaluate package) on the NPC to make sure they evaluate and choose the proper package. Huh ? there is a flag for enable/disable on AI packages ? Used with the "SetPackageFlag" function ? Or do you just mean to put a condition on the packages ... ?Like the crying package put : GetTalkedToPC == 0And the follow package put : GetTalkedToPC == 1 Then where ever the op was using AddScriptPackage , instead they put "MyNPCRef.EVP"Like the "Result Script (end)" of their Topic info . Edited September 14, 2017 by Mktavish Link to comment Share on other sites More sharing options...
madmongo Posted September 14, 2017 Share Posted September 14, 2017 I meant use conditions on packages and set NPC script variables as flags to enable each package. Link to comment Share on other sites More sharing options...
rickerhk Posted September 16, 2017 Share Posted September 16, 2017 Also, on the NPC object, un-tick the box 'no low-level processing' if they need to follow you through portals consistently. Link to comment Share on other sites More sharing options...
Recommended Posts