Entity/EmitSound

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(Created page with "{{Func |Name=EmitSound |Parent=Entity |Description=Plays a sound on an entity. |Realm=Shared |IsClass=Yes }} {{Arg |type=string |name=soundName |desc=The name of the ...")
 
(Changed up the wording to more closely represent the old wiki's page. I'm assuming much hasn't changed regarding this function.)
Line 14: Line 14:
 
|type=number
 
|type=number
 
|name=soundLevel
 
|name=soundLevel
|desc=The value to give to the input.
+
|desc=A modifier for the distance this sound will reach, acceptable range is 0 to 511. 100 means no adjustment to the level.
 
}}
 
}}
 
{{Arg
 
{{Arg
 
|type=number
 
|type=number
 
|name=pitchPercent
 
|name=pitchPercent
|desc=The speed which the sound is played at.
+
|desc=The pitch applied to the sound. The acceptable range is from 0 to 255. 100 means the pitch is not changed.
 
}}
 
}}

Revision as of 23:46, 4 June 2013

 Entity:EmitSound( )

Contents

Description

Plays a sound on an entity.

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