Garry's Mod Wiki

GM:AddDeathNotice

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

Description

Adds a death notice entry.

You cannot use hook.Add on this hook yet.

Issue Tracker: 2611

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() )

Page Links


Special Pages


Wikis

?

Render Time: 46ms

DB GetPage 3
Generate Html 8
SaveChanges (1) 20
Render Body 0
Render Sidebar 12