Garry's Mod Wiki

Revision Difference

GM:DoPlayerDeath#524782

<function name="DoPlayerDeath" parent="GM" type="hook"> <ishook>yes</ishook> <description> Handles the player's death. This hook is **not** called if the player is killed by <page>Player:KillSilent</page>. See <page>GM:PlayerSilentDeath</page> for that. * <page>GM:PlayerDeath</page> is called after this hook * <page>GM:PostPlayerDeath</page> is called after that &lt;br&gt;⤶ <note><page>Player:Alive</page> returns true when this is called</note> </description> <realm>Server</realm> <predicted>No</predicted> <args> <arg name="ply" type="Player">The player</arg> <arg name="attacker" type="Entity">The entity that killed the player</arg> <arg name="dmg" type="CTakeDamageInfo">Damage info</arg> </args> </function>