» Sat Nov 17, 2012 7:53 pm
It's easier to set the NPC as friend to the player and to ignore friendly fire. If ths didn't fit you, the function you need to use on the onhit event is stopcombatalarm() . Don't forget to deactivate the onhit event (using states is a way) for a while after each use, to avoid a continuous damage spell causing bloatting.