CSoundPatch.SetSoundLevel
From GMod Wiki
Function | |
Syntax | CSoundPatch:SetSoundLevel( Float SoundLevel ) |
Description: | |
Change the sound level of a CSoundPatch object. | |
Returns: | nil |
In Object: | Csoundpatch |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=CSoundPatch.SetSoundLevel]CSoundPatch.SetSoundLevel [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional Notes
- A value below 1 causes the sound to play everywhere on the map with no origin.
- A value above ~160 causes the sound to fade out at close range.
- The SoundLevel is seemingly based on decibels. A good reference point on what SoundLevel to use is the SoundLevel Flag names on the Soundscripts page of Valve's Developer wiki.