IsPlaybackPaused: Difference between revisions

From NPC for VCMP 0.4 Servers
Jump to navigation Jump to search
(Created page with "{{v1_8_beta}} {{Welcome|desc=This function tells whether any playback is in paused state.| params=<source>NoParams</source>| example=<source lang="lua"> if(IsPlaybackRunning()) { if(IsPlaybackPaused()) print("The playback is paused\n"); }| retvals=true, if playback is paused and false otherwise(playback is not running or running but not paused)| note=This function returns false when playback is not running| relfuncs=*IsPlaybackRunning }}")
 
No edit summary
 
Line 7: Line 7:
     if(IsPlaybackPaused())
     if(IsPlaybackPaused())
           print("The playback is paused\n");
           print("The playback is paused\n");
}|
}
</source>|
retvals=true, if playback is paused and false otherwise(playback is not running or running but not paused)|
retvals=true, if playback is paused and false otherwise(playback is not running or running but not paused)|
note=This function returns false when playback is not running|
note=This function returns false when playback is not running|
relfuncs=*[[IsPlaybackRunning]]
relfuncs=*[[IsPlaybackRunning]]
}}
}}

Latest revision as of 17:34, 29 October 2024

This function was added in v1.8 beta and will not work on previous versions.


Description:
This function tells whether any playback is in paused state.


Parameters:

NoParams


Return Values:
true, if playback is paused and false otherwise(playback is not running or running but not paused)

Important Note:
This function returns false when playback is not running

Example

if(IsPlaybackRunning())
{
     if(IsPlaybackPaused())
          print("The playback is paused\n");
}

Related Functions

The following functions may be helpful as they relate to this function in one way or another.