sound/Add

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(Created page with "{{Func |Name=Add |Parent=sound |Description=Creates a sound. |Realm=Shared |IsClass=No }} {{Arg |type=SoundData |name=sound_data |desc=The sounds properties. }} {{Ex...")
 
Line 2: Line 2:
 
|Name=Add
 
|Name=Add
 
|Parent=sound
 
|Parent=sound
|Description=Creates a sound.
+
|Description=Creates a sound. It can also override sounds, which seems to only work when set on the server.
 
|Realm=Shared
 
|Realm=Shared
 
|IsClass=No
 
|IsClass=No
 
}}
 
}}
 
{{Arg
 
{{Arg
|type=SoundData
+
|type=number
 
|name=sound_data
 
|name=sound_data
 
|desc=The sounds properties.
 
|desc=The sounds properties.
 
}}
 
}}
 
{{Example
 
{{Example
| Description = "Creates a sound."
+
|Description="Creates a sound."
| Code =  
+
|Code=sound.Add(
sound.Add(
+
 
{
 
{
 
  name = "enzo_engine_idle",
 
  name = "enzo_engine_idle",

Revision as of 22:24, 2 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

number 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