Revision Difference
GM:AddDeathNotice#551426
<function name="AddDeathNotice" parent="GM" type="hook">
<description>
Adds a death notice entry.
⤶
<bug issue="2611" pull="1380">You cannot use <page>hook.Add</page> on this hook yet.</bug>⤶
</description>
<realm>Client</realm>
<predicted>No</predicted>
<file line="127">gamemodes/base/gamemode/cl_deathnotice.lua</file>
<args>
<arg name="attacker" type="string">The name of the attacker</arg>
<arg name="attackerTeam" type="number">The team of the attacker</arg>
<arg name="inflictor" type="string">Class name of the entity inflicting the damage</arg>
<arg name="victim" type="string">Name of the victim</arg>
<arg name="victimTeam" type="number">Team of the victim</arg>
</args>
</function>
<example>
<description>Shows a suicide death notice in Sandbox.</description>
<code>
local ply = Entity( 1 )
GAMEMODE:AddDeathNotice( ply:GetName(), ply:Team(), nil, ply:GetName(), ply:Team() )
</code>
</example>