Garry's Mod Wiki

GM:SendDeathNotice

  GM:SendDeathNotice( Entity attacker, Entity inflictor, Entity victim, number flags )

Description

An internal function used to send a death notice event to all clients.

Arguments

1 Entity attacker
The entity that caused the death.
2 Entity inflictor
The attacker's weapon or the attacker itself if no weapon was equipped.
3 Entity victim
The entity that died.
4 number flags
Death notice flags. 1 = Friendly victim (to the player), 2 = friendly attacker (to the player)