G.WorldSound

From GMod Wiki

Jump to: navigation, search
Function
Syntax WorldSound( String sound, Vector origin, Number amplitude, Number pitch )
Where is this used?
Description:
Plays a sound originating from the world?.
Returns: nil
Part of Library: Global Functions
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=G.WorldSound]G.WorldSound [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionPlays a sound
Used onNewerServer.png
Code
WorldSound( "weapons/ar2/npc_ar2_altfire.wav", Vector( 0, 0, 0 ), 160, 130 )
OutputA sound is played at the origin

Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox