sound.Add

From Garry's Mod
Revision as of 16:50, 27 March 2014 by Kilburn (Talk | contribs)
Jump to: navigation, search
 sound.Add( )

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,
	volume = 1.0,
	level = 80,
	pitch = {95, 110},
	sound = "vehicles/enzo/idle.wav"
} )


Personal tools
Navigation