Entity/EmitSound

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(Changed up the wording to more closely represent the old wiki's page. I'm assuming much hasn't changed regarding this function.)
Line 2: Line 2:
 
|Name=EmitSound
 
|Name=EmitSound
 
|Parent=Entity
 
|Parent=Entity
|Description=Plays a sound on an entity.
+
|Description=Plays a sound on an entity. If run clientside, the sound will only be heard locally.
 
|Realm=Shared
 
|Realm=Shared
 
|IsClass=Yes
 
|IsClass=Yes

Revision as of 13:45, 29 September 2013

 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

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

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