Gamemode.PlayerDeathSound

From GMod Wiki

Jump to: navigation, search
Event Hook
Hook NamePlayerDeathSound
SyntaxGM:PlayerDeathSound( )
DescriptionReturn true to not play the default sounds.
ReturnsBoolean
Lua StateNewerServer.png
BBCode[b][url=wiki.garrysmod.com/?title=Gamemode.PlayerDeathSound]Gamemode.PlayerDeathSound [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]

Examples

DescriptionReturn true to disable and false to enable the default death sound.
Used onNewerServer.png
Code
function OverrideDeathSound()
	return true
end
hook.Add("PlayerDeathSound", "OverrideDeathSound", OverrideDeathSound)
OutputThis will disable the default deathsound, so you can hook your new sound to PlayerDeath.


Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox