sound.Add

From Garry's Mod
Revision as of 23:41, 30 May 2016 by Code gs (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,
	level = 1.0,
	sound = 80,
	pitch = {95, 110},
	sound = "vehicles/enzo/idle.wav"
} )


Personal tools
Navigation