Garry's Mod Wiki

GM:SendDeathNotice

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

Description

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

Arguments

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