Gamemode.PlayerDeathSound
From GMod Wiki
| Event Hook | |
| Hook Name | PlayerDeathSound |
| Syntax | GM:PlayerDeathSound( ) |
| Description | Return true to not play the default sounds. |
| Returns | Boolean |
| Lua State | |
| BBCode | [b][url=wiki.garrysmod.com/?title=Gamemode.PlayerDeathSound]Gamemode.PlayerDeathSound [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
| Description | Return true to disable and false to enable the default death sound. |
|---|---|
| Used on | |
| Code | function OverrideDeathSound() return true end hook.Add("PlayerDeathSound", "OverrideDeathSound", OverrideDeathSound) |
| Output | This will disable the default deathsound, so you can hook your new sound to PlayerDeath. |