[Rseding] [0.17.74] missing corpse from on_post_entity_died
Posted: Sun Nov 03, 2019 4:28 am
So I'm editing the pvp.lua scenario and responding to an on_post_entity_died event. Specifically I'm trying to use it to look at the corpse of a player after they have died. However, event.corpses is empty (i.e. `{}`) even when a corpse has clearly been created. Here is my testing code inside on_post_entity_died:
Result:![Image](https://forums.factorio.com/images/ext/27c6ff6de5fdea5621e1b4e125309087.png)
Code: Select all
if not (event.prototype.type == "character") then return end
if event.corpses == nil then game.print("corpses nil") end
game.print(serpent.block(event))
![Image](https://forums.factorio.com/images/ext/27c6ff6de5fdea5621e1b4e125309087.png)