Entity.EmitSound

From GMod Wiki

Revision as of 14:25, 22 July 2011 by TylerB (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Function
Syntax Entity:EmitSound( String filename, Float SoundLevel, Float pitchPercent )
Description:
A sound is emitted from the entity. SoundLevel and pitchPercent should be 100 if you don't want to change the volume/pitch of the sound.
Returns: nil
In Object: Entity
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Entity.EmitSound]Entity.EmitSound [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionUses an entity and emits a sound from it.
Used onNewerServer.png
Code
ent:EmitSound("Path/To/Sound.wav", 500, 200)
Outputent emits Sound.wav from itself, with 5 times the normal audible distance and 2 times the normal pitch.


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox