Difference between revisions of "ToggleSoundPause"

From The Official Visionaire Studio: Adventure Game Engine Wiki
(Redirected page to Global Command: toggleSoundPause)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
==toggleSoundPause==
+
#REDIRECT [[Global Command: toggleSoundPause]]
 
 
<div class="command-min-version-info">Available since: <span class="command-min-version">v3.8</span></div>
 
 
 
<div class="command-doc">Pause/resume the specified sound.</div>
 
 
 
Lua Syntax:
 
<pre class="command-syntax">toggleSoundPause(soundID)</pre>
 
===Arguments===
 
====soundID====
 
:'''int''' - ID of sound which should be paused/resumed.
 
===Flags===
 
===Return Values===
 
;status
 
:True if sound was successfully paused/resumed, false otherwise.
 
===Examples===
 
Example 1:
 
<syntaxhighlight>
 
local soundID = getSoundId('vispath:sounds/example.ogg')
 
toggleSoundPause(soundID)
 
</syntaxhighlight>
 

Latest revision as of 12:37, 19 May 2023