Garry's Mod Wiki

Garry's Mod Wiki

  GM:AddDeathNotice( string attacker, number attackerTeam, string inflictor, string victim, number victimTeam )

Description

Adds a death notice entry.

Arguments

1 string attacker
The name of the attacker
2 number attackerTeam
The team of the attacker
3 string inflictor
Class name of the entity inflicting the damage
4 string victim
Name of the victim
5 number victimTeam
Team of the victim

Example

Shows a suicide death notice in Sandbox.

local ply = Entity( 1 ) GAMEMODE:AddDeathNotice( ply:GetName(), ply:Team(), nil, ply:GetName(), ply:Team() )

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...