CSoundPatch.IsPlaying

From GMod Wiki

Jump to: navigation, search
Function
Syntax CSoundPatch:IsPlaying( )
Description:
Checks to see if a CSoundPatch is playing.
Returns: Boolean
In Object: CSoundPatch
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=CSoundPatch.IsPlaying]CSoundPatch.IsPlaying [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionChecks if sound TestSound is playing.
Used onNewerShared.png
Code
 
  MsgN( TestSound:IsPlaying() );
 
Outputtrue
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox