on_pre_player_died/on_player_died cause
Posted: Thu Aug 04, 2016 3:25 am
Is it possible to return the entity and force that "caused" the death when a player dies (or pre-dies)? I would love to be able to perform something based on the identify of the killer (and some other crazy things) when someone dies. I have a couple of ideas revolving around player death, and they would work best if I could actually tell WHY someone died.
Something like returning "poison-capsule" belonging to "(lua table for player force)" if you poison yourself to death, or "big-worm" belonging to "(lua table for biter force)" if you dont run away quick enough from the big worms. or "droid-smg" belonging to "(lua table for player force)" if you accidentally piss off your Robot Army assistants.....
Something like returning "poison-capsule" belonging to "(lua table for player force)" if you poison yourself to death, or "big-worm" belonging to "(lua table for biter force)" if you dont run away quick enough from the big worms. or "droid-smg" belonging to "(lua table for player force)" if you accidentally piss off your Robot Army assistants.....