on_entity_died author ?
Posted: Wed May 25, 2016 2:14 pm
Hi,
I red this post "on_entity_damaged event"
viewtopic.php?f=28&t=25542
and I understand it's too cpu demanding.
But, in the same order of idea, but easier, it would be nice in the on_entity_died event to have the identity of the entity who killed the other (infact gave the last fatal wound) : an "event.author" field would be nice (could be a player, an alien, a turret or a robot) : it would be great for PvP mods, in order to detect which force destroys which building (to win the game) or which player killed who (to make reports about killings), or count aliens death per forces, etc... It would be less cpu demanding because only trigger on death. You have to find who is belonging the ammo which killed the entity.
I red this post "on_entity_damaged event"
viewtopic.php?f=28&t=25542
and I understand it's too cpu demanding.
But, in the same order of idea, but easier, it would be nice in the on_entity_died event to have the identity of the entity who killed the other (infact gave the last fatal wound) : an "event.author" field would be nice (could be a player, an alien, a turret or a robot) : it would be great for PvP mods, in order to detect which force destroys which building (to win the game) or which player killed who (to make reports about killings), or count aliens death per forces, etc... It would be less cpu demanding because only trigger on death. You have to find who is belonging the ammo which killed the entity.