# Pause Sound
Grammar — pause|Pause/Unpause s
Flags —Native
|Action
Pauses or unpauses a sound.
# Arguments
sound
— Soundbool
<preset::PauseUnpauseOption> — Pause
Returns — void
native void SoundPause(sound s, bool pause);
# Related
Category: Sound / Sounds
- Play Sound On Unit —
void
— SoundPlayOnUnitForPlayer - Play Sound At Point —
void
— SoundPlayAtPointForPlayer - Play Sound —
void
— SoundPlayForPlayer - Last Played Sound —
sound
— SoundLastPlayed - Pause Sound —
void
— SoundPause - Stop Sound —
void
— SoundStop - Skip To Sound Offset —
void
— SoundSetOffset - Move Sound —
void
— SoundSetPosition - Wait For Sound —
void
— SoundWait - Set Sound Volume —
void
— SoundSetVolume - Stop All Trigger Sounds —
void
— SoundStopAllTriggerSounds - Stop All Model Sounds —
void
— SoundStopAllModelSounds - Set Sound Listener Gender —
void
— SoundSetListenerGender
# Examples
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialmapmechanics.stormmap/MapScript.galaxy:1415
CatalogFieldValueSet(c_gameCatalogEffect, "CaptureMacGuffin", "PeriodCount", gv_pLAYER_01_USER, "48");
libNtve_gf_CreateUnitsWithDefaultFacing(1, "RavenLordTributeWarning", c_unitCreateIgnorePlacement, libCore_gv_cOMPUTER_Neutral, PointFromId(118), null);
SoundPause(libMapM_gv_mMRavenSpawnSound, true);
SoundPlayAtPointForPlayer(SoundLink("Event_RavenCurse_TributeSpawn", -1), c_maxPlayers, PlayerGroupAll(), PointFromId(118), 2.0, 100.0, 7.5);
gv_mMRavenSpawnSound = SoundLastPlayed();
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialmapmechanics.stormmap/MapScript.galaxy:1680
}
SoundPause(libMapM_gv_mMRavenSpawnSound, false);
autoA0EB99F0_g = gv_orderCutsceneUnitGroup;
autoA0EB99F0_u = UnitGroupCount(autoA0EB99F0_g, c_unitCountAll);
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialmapmechanics.stormmap/MapScript.galaxy:1851
TriggerExecute(gt_MapMechanicQ, true, true);
gf_PauseGameStateforCutscene(false);
SoundPause(libMapM_gv_mMRavenSpawnSound, true);
DialogControlSetVisible(gv_mapMechanicHighlightTopFrame, PlayerGroupAll(), true);
DialogControlSetVisible(gv_mapMechanicHighlightBottomFrame, PlayerGroupAll(), true);
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialmapmechanics.stormmap/MapScript.galaxy:1859
gv_pauseReminders = false;
TriggerExecute(gt_ResumeGameStateforCutscene, true, false);
SoundPause(libMapM_gv_mMRavenSpawnSound, false);
TriggerExecute(gt_ObjectiveGatherTributeCreate, true, false);
TriggerEnable(gt_TributeFightReminder, true);
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialmapmechanics.stormmap — MapScript.galaxy:1415
CatalogFieldValueSet(c_gameCatalogEffect, "CaptureMacGuffin", "PeriodCount", gv_pLAYER_01_USER, "48");
libNtve_gf_CreateUnitsWithDefaultFacing(1, "RavenLordTributeWarning", c_unitCreateIgnorePlacement, libCore_gv_cOMPUTER_Neutral, PointFromId(118), null);
SoundPause(libMapM_gv_mMRavenSpawnSound, true);
SoundPlayAtPointForPlayer(SoundLink("Event_RavenCurse_TributeSpawn", -1), c_maxPlayers, PlayerGroupAll(), PointFromId(118), 2.0, 100.0, 7.5);
gv_mMRavenSpawnSound = SoundLastPlayed();
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialmapmechanics.stormmap — MapScript.galaxy:1680
}
SoundPause(libMapM_gv_mMRavenSpawnSound, false);
autoA0EB99F0_g = gv_orderCutsceneUnitGroup;
autoA0EB99F0_u = UnitGroupCount(autoA0EB99F0_g, c_unitCountAll);
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialmapmechanics.stormmap — MapScript.galaxy:1851
TriggerExecute(gt_MapMechanicQ, true, true);
gf_PauseGameStateforCutscene(false);
SoundPause(libMapM_gv_mMRavenSpawnSound, true);
DialogControlSetVisible(gv_mapMechanicHighlightTopFrame, PlayerGroupAll(), true);
DialogControlSetVisible(gv_mapMechanicHighlightBottomFrame, PlayerGroupAll(), true);
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialmapmechanics.stormmap — MapScript.galaxy:1859
gv_pauseReminders = false;
TriggerExecute(gt_ResumeGameStateforCutscene, true, false);
SoundPause(libMapM_gv_mMRavenSpawnSound, false);
TriggerExecute(gt_ObjectiveGatherTributeCreate, true, false);
TriggerEnable(gt_TributeFightReminder, true);
mods/heroesmapmods/battlegroundmapmods/volskayamechanics.stormmod — base.stormdata/LibVLSK.galaxy:848
// Automatic Variable Declarations
// Implementation
SoundPause(libVLSK_gv_capturePoint_ControllingSound_Ally[lp_team], lp_pauseUnpause);
SoundPause(libVLSK_gv_capturePoint_ControllingSound_Enemy[lp_team], lp_pauseUnpause);
}
mods/heroesmapmods/battlegroundmapmods/volskayamechanics.stormmod — base.stormdata/LibVLSK.galaxy:849
// Implementation
SoundPause(libVLSK_gv_capturePoint_ControllingSound_Ally[lp_team], lp_pauseUnpause);
SoundPause(libVLSK_gv_capturePoint_ControllingSound_Enemy[lp_team], lp_pauseUnpause);
}