CSoundPatch.PlayEx

From GMod Wiki

Jump to: navigation, search
Function
Syntax CSoundPatch:PlayEx( Float volume, Float pitch )
Description:
Starts to play the CSoundPatch sound with custom volume and pitch.
Returns: nil
In Object: Csoundpatch
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=CSoundPatch.PlayEx]CSoundPatch.PlayEx [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionPokes a Sound object to start playing with specified volume and pitch.
Used onNewerShared.png
Code
Sound = CreateSound(computah, Sound("hl1/ambience/computalk2.wav"))
Sound:PlayEx(0.5, 100) //Plays a sound with 50% volume and 100% pitch coming from entity "computah"
OutputN/A


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox