Page 1 of 1

Add "damage_type" to "on_entity_died"

Posted: Mon Mar 11, 2019 7:47 pm
by TheSAguy
Hi,

Currently "damage_type" is not available for "on_entity_died", it's only on "on_entity_damaged"
Anyway we can please get it added to "on_entity_died" so I can determine what type of damage killed a unit?

Thanks.

Re: Add "damage_type" to "on_entity_died"

Posted: Tue Mar 12, 2019 10:48 pm
by Rseding91
An entity dying has no direct relation to being damaged and as such there is no way to know what "damage" was done to an entity during the died event.

Re: Add "damage_type" to "on_entity_died"

Posted: Tue Mar 12, 2019 11:21 pm
by darkfrei
Is it possible to add to on_damage flag is_lethal?

Re: Add "damage_type" to "on_entity_died"

Posted: Tue Mar 12, 2019 11:40 pm
by Rseding91
You can just check if health == 0 then yes it's lethal.