Gamemode.PlayerSilentDeath

From GMod Wiki

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