on_player_died -> corpse & position
Posted: Sat May 04, 2019 4:56 pm
What?
The event on_player_died should contain a reference to the created corpse entity containing the players items.
And the position of death in case there is no corpse (not sure if that ever happens).
Why?
Because the only way i currently see to get the corpse or the position of death is to watch on_pre_player_died to store the position until on_player_died, and then use find_entity and hope that there is just one corse in the vicinity.
The event on_player_died should contain a reference to the created corpse entity containing the players items.
And the position of death in case there is no corpse (not sure if that ever happens).
Why?
Because the only way i currently see to get the corpse or the position of death is to watch on_pre_player_died to store the position until on_player_died, and then use find_entity and hope that there is just one corse in the vicinity.