we added EVENT_NPC_SLAY a while back for when an NPC kills another NPC, so that would prolly cut it.
as im looking at EVENT_ATTACK, the code is only doing it when the NPC is attacked, as you stated. Im almost wondering if that functionality mihgt be useful to somebody sometime... so im thinking about adding an EVENT_COMBAT which would trigger when an NPC starts "combat" mode, which would be defined as somebody attacking the NPC, or being attacked by the NPC in any manner, or the NPC having somebody on their hate list (in case they are running away or something), and would wear off like 12 seconds after neither of those actions were true... what do you think?
|