sound/Add

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
Line 7: Line 7:
 
}}
 
}}
 
{{Arg
 
{{Arg
|type=number
+
|type=table
 
|name=sound_data
 
|name=sound_data
 
|desc=The sounds properties.
 
|desc=The sounds properties.

Revision as of 10:36, 27 August 2013

 sound.Add( )

Contents

Description

Creates a sound. It can also override sounds, which seems to only work when set on the server.

Arguments

table sound_data

The sounds properties.

Examples

Example

"Creates a sound."

sound.Add(
{
 name = "enzo_engine_idle",
 channel = CHAN_STATIC,
 volume = 1.0,
 soundlevel = 80,
 pitchstart = 95,
 pitchend = 110,
 sound = "vehicles/enzo/idle.wav"
})


Personal tools
Navigation