Hi,
Hopefully this should be an easy one. I have DZAI configured to use HandleDamage EH. This emulates the player blood health and unconsciousness of players for bots. I notice that the code in the handledamage EH will decide if the AI is killed or not, and if killed, will make a call to the DZAI ai_death.sqf which among other things calls 'SetDamage 1' on the AI. DZAI's handledamage EH returns 0 for damage back to the engine, which makes sense, since we only want 'blood' damage, until the AI is actually killed.
My question is, if I am using my own 'Killed' EH, say from WAI's code, or DZMS, will that 'Killed' EH get called when SetDamage 1 is set from DZAI on the same AI? I would presume so, but not sure. So I guess the simple questions is, does 'SetDamage 1' on a unit/agent call the Killed EH? This is A2 OA engine obviously. I honestly could not find a simple answer to this browsing BIS's forums, and I am not able to test this.
It would be cool to add DZAI's damage support, as well as ability to track headshots, but also have WAI's Killed EH called as well.
Hopefully this should be an easy one. I have DZAI configured to use HandleDamage EH. This emulates the player blood health and unconsciousness of players for bots. I notice that the code in the handledamage EH will decide if the AI is killed or not, and if killed, will make a call to the DZAI ai_death.sqf which among other things calls 'SetDamage 1' on the AI. DZAI's handledamage EH returns 0 for damage back to the engine, which makes sense, since we only want 'blood' damage, until the AI is actually killed.
My question is, if I am using my own 'Killed' EH, say from WAI's code, or DZMS, will that 'Killed' EH get called when SetDamage 1 is set from DZAI on the same AI? I would presume so, but not sure. So I guess the simple questions is, does 'SetDamage 1' on a unit/agent call the Killed EH? This is A2 OA engine obviously. I honestly could not find a simple answer to this browsing BIS's forums, and I am not able to test this.
It would be cool to add DZAI's damage support, as well as ability to track headshots, but also have WAI's Killed EH called as well.