Lolz1234567 Posted June 4, 2017 Share Posted June 4, 2017 Im trying to make a person "Cower" but i cant figure out how to set up animations with the AI packages. If anyone could help me out, walk me through it almost, that would be great. Link to comment Share on other sites More sharing options...
Mktavish Posted June 5, 2017 Share Posted June 5, 2017 (edited) To make their AI switch on demand ... You have to use a command of "SetActorValue"Oh wait ... there isn't one specifically for that. You have to give them a flee package. MyNpC.AddScriptPackage MyFleePackage Easy peasy Edited June 5, 2017 by Mktavish Link to comment Share on other sites More sharing options...
madmongo Posted June 5, 2017 Share Posted June 5, 2017 A flee package will make them flee. They might be too busy running away to cower, or they might alternately cower and run (or run while cowering). If all you want is for someone to cower in a particular spot, you're better off creating an AI package specifically for that. I think if you use a travel package with an xmarker for a destination and then use the cower animation for your custom idle, I think that will make the NPC cower in a specific spot. Use an NPC script variable to enable the cower AI package. Link to comment Share on other sites More sharing options...
Mktavish Posted June 7, 2017 Share Posted June 7, 2017 (edited) A flee package will make them flee. They might be too busy running away to cower, or they might alternately cower and run (or run while cowering). If all you want is for someone to cower in a particular spot, you're better off creating an AI package specifically for that. I think if you use a travel package with an xmarker for a destination and then use the cower animation for your custom idle, I think that will make the NPC cower in a specific spot. Use an NPC script variable to enable the cower AI package. Well you can control the distance they flee ... and pick specific points / refs to flee from. But that package is specific to not in combat ... so you would have to flag it "Continue during combat"And I am assuming that the cowering animation is part of the flee package ... hence they would move to a point then cower. Or in the case of a distance of 0 , would just start to cower ? But not that your suggestion may be better ... just that my experience of adding idle animations to packages ... never turned out very well. Edited June 7, 2017 by Mktavish Link to comment Share on other sites More sharing options...
Recommended Posts