Originally Posted by Miltiades
I was fighting (after cheering on the sidelines
). As soon as I begun to fight, the NPCs also begon to fight, but only for one round.
Hmm... Try changing the second parameter to GetIsInCombat()
to FALSE (it's TRUE now) and see if that makes a difference.
Also, are you fighting before or after the NPCs have been told to follow?
On second thought you'll probably need to add checks to the OnDialog and OnPerception scripts as well, if you want to (somewhat) reliably prevent the NPCs from attacking enemies they spot if the player isn't attacking.