IsSoundPaused: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
__NOTOC__  
__NOTOC__  
{{Client function}}
{{Client function}}
Get the sound playing state.
This function is used to return the current pause state of the specified [[sound]] element.


==Syntax==  
==Syntax==  
<syntaxhighlight lang="lua">bool IsSoundPaused ( element sound )</syntaxhighlight>  
<syntaxhighlight lang="lua">bool isSoundPaused ( element theSound )</syntaxhighlight>  


===Required Arguments===  
===Required Arguments===  
*'''sound:''' a sound element.
*'''theSound:''' The [[sound]] element which pause state you want to return.


===Returns===
===Returns===
Returns a ''bool'' true if the sound is paused, ''false'' if the sound is not paused or invalid arguements where passed
Returns ''true'' if the [[sound]] element is paused, ''false'' if unpaused or invalid arguments were passed.


==Example==  
==Example==  

Revision as of 20:53, 26 December 2008