sound.Add

From Garry's Mod
Revision as of 18:49, 25 January 2014 by Robotboy655 (Talk | contribs)
Jump to: navigation, search
 sound.Add( )

Contents

Description

Creates a sound. 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."

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