View Single Post
Old 02-06-2007, 03:14 PM   #19
Mostly dormant
stoffe's Avatar
Status: Administrator
Join Date: Apr 2002
Posts: 5,850
Helpful!  10 year veteran!  Notable contributor 
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.
stoffe is offline   you may: quote & reply,