Gamemode.DoPlayerDeath
From GMod Wiki
| Event Hook | |
| Hook Name | DoPlayerDeath |
| Syntax | GM:DoPlayerDeath( Player victim, Entity Attacker, Ctakedamageinfo DamageInfo ) |
| Description | Is called when a player dies, this specifies exactly what should happen after the players death (ie create client ragdoll) |
| Returns | Nil |
| Lua State | |
| BBCode | [b][url=wiki.garrysmod.com/?title=Gamemode.DoPlayerDeath]Gamemode.DoPlayerDeath [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional Notes
- Do not be confused by PlayerDeath(), this functions is called to tell the server what to do when a player dies, PlayerDeath() is called after this
- The player object is still considered alive at that moment.
See Also