Add "damage_type" to "on_entity_died"

Things that we aren't going to implement
TheSAguy
Smart Inserter
Smart Inserter
Posts: 1449
Joined: Mon Jan 13, 2014 6:17 pm
Contact:

Add "damage_type" to "on_entity_died"

Post 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.
Rseding91
Factorio Staff
Factorio Staff
Posts: 14598
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Add "damage_type" to "on_entity_died"

Post 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.
If you want to get ahold of me I'm almost always on Discord.
User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2905
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: Add "damage_type" to "on_entity_died"

Post by darkfrei »

Is it possible to add to on_damage flag is_lethal?
Rseding91
Factorio Staff
Factorio Staff
Posts: 14598
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Add "damage_type" to "on_entity_died"

Post by Rseding91 »

You can just check if health == 0 then yes it's lethal.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Won't implement”