Gamemode.PlayerSilentDeath

From GMod Wiki

Revision as of 15:17, 17 February 2011 by BlackVoid (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Event Hook
Hook NamePlayerSilentDeath
SyntaxGM:PlayerSilentDeath( Player ply )
DescriptionCalled upon silent death of player
ReturnsNil
Lua StateNewerServer.png
BBCode[b][url=wiki.garrysmod.com/?title=Gamemode.PlayerSilentDeath]Gamemode.PlayerSilentDeath [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionGets called upon a players silent death
Used onNewerServer.png
Code
function silentDeathExample( ply )
	print( ply:GetName() ..  " got killed Silently" )
end
hook.Add( "PlayerSilentDeath", "exampleOfSilentDeath", silentDeathExample )
 
Outputprints name of player who died and message.


Additional Notes


Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox