Entity/EmitSound

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
Line 15: Line 15:
 
|name=soundLevel
 
|name=soundLevel
 
|desc=A modifier for the distance this sound will reach, acceptable range is 0 to 511. 100 means no adjustment to the level.
 
|desc=A modifier for the distance this sound will reach, acceptable range is 0 to 511. 100 means no adjustment to the level.
 +
|default=100
 
}}
 
}}
 
{{Arg
 
{{Arg
Line 20: Line 21:
 
|name=pitchPercent
 
|name=pitchPercent
 
|desc=The pitch applied to the sound. The acceptable range is from 0 to 255. 100 means the pitch is not changed.
 
|desc=The pitch applied to the sound. The acceptable range is from 0 to 255. 100 means the pitch is not changed.
 +
|default=100
 
}}
 
}}

Revision as of 16:58, 21 February 2014

 Entity:EmitSound( )

Contents

Description

Plays a sound on an entity. If run clientside, the sound will only be heard locally.

Arguments

string soundName

The name of the sound to be played.

Arguments

number soundLevel=100

A modifier for the distance this sound will reach, acceptable range is 0 to 511. 100 means no adjustment to the level.

Arguments

number pitchPercent=100

The pitch applied to the sound. The acceptable range is from 0 to 255. 100 means the pitch is not changed.
Personal tools
Navigation