Called after an entity dies.
ghost?: LuaEntity — The ghost created by the entity dying if any.force?: LuaForce — The force that did the killing if any.position: MapPosition — Position where the entity died.prototype: LuaEntityPrototype — The entity prototype of the entity that died.quality: LuaQualityPrototype — The quality of the entity that died.damage_type?: LuaDamagePrototype — The damage type if any.corpses: Array<LuaEntity> — The corpses created by the entity dying if any.surface_index: uint32 — The surface the entity was on.unit_number?: uint32 — The unit number the entity had if any.name: defines.events — Identifier of the eventtick: uint32 — Tick the event was generated.