sound/Add
From Garry's Mod
(Difference between revisions)
m (Fixed mixing up of keys in example) |
m (Fixed example typo) |
||
Line 17: | Line 17: | ||
channel = CHAN_STATIC, | channel = CHAN_STATIC, | ||
level = 1.0, | level = 1.0, | ||
− | + | volume = 80, | |
pitch = {95, 110}, | pitch = {95, 110}, | ||
sound = "vehicles/enzo/idle.wav" | sound = "vehicles/enzo/idle.wav" | ||
} ) | } ) | ||
}} | }} |
Revision as of 23:41, 30 May 2016
Contents |
Description
Creates a sound script. It can also override sounds, which seems to only work when set on the server.
Arguments
table soundData
The sounds properties. See SoundData structure
Examples
Example
Creates a sound script.
sound.Add( { name = "enzo_engine_idle", channel = CHAN_STATIC, level = 1.0, volume = 80, pitch = {95, 110}, sound = "vehicles/enzo/idle.wav" } )