on_corpse_removed (or similar)

Post Reply
Kovus
Inserter
Inserter
Posts: 23
Joined: Sat Feb 27, 2016 5:25 pm
Contact:

on_corpse_removed (or similar)

Post by Kovus »

I was hoping to find an event that happened when a player corpse is removed from the game, either due to decay or due to all of the items in its inventory being removed. It doesn't seem like an event is fired for those two cases.

The on_preplayer_mined_item and on_player_mined_entity events are fired IFF the corpse is actually mined, but that's only 1 of 3 cases for how a corpse will be removed from the game, so it's not a complete solution. If another solution is available, I'd love to know.

Rseding91
Factorio Staff
Factorio Staff
Posts: 13209
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: on_corpse_removed (or similar)

Post by Rseding91 »

Ok, I added the following for 0.16:
0.16 changelog wrote: Added on_character_corpse_expired event.
Added LuaEntity::character_corpse_player_index, character_corpse_tick_of_death, and character_corpse_death_cause read/write.
If you want to get ahold of me I'm almost always on Discord.

Kovus
Inserter
Inserter
Posts: 23
Joined: Sat Feb 27, 2016 5:25 pm
Contact:

Re: on_corpse_removed (or similar)

Post by Kovus »

Wonderful news! Yet another reason to look forward to 0.16!

Post Reply

Return to “Implemented mod requests”