# Lock Game Speed
Grammar — lockUnlock game speed
Flags —Native
|Action
Lock the game speed, rendering it unable to be changed.
# Arguments
bool
<preset::LockUnlockOption> — Lock/Unlock
Returns — void
native void GameSetSpeedLocked(bool isLocked);
# Related
Category: Game / Game Settings
- Map Initialization —
void
— TriggerAddEventMapInit - Save Game Started —
void
— TriggerAddEventSaveGame - Save Game Finished —
void
— TriggerAddEventSaveGameDone - Load Game Finished —
void
— TriggerAddEventLoadGameDone - Set Game Speed —
void
— GameSetSpeedValue - Game Set Quit On Quit Button —
void
— GameSetQuitOnQuitButton - Set Global Time Scale —
void
— GameSetGlobalTimeScale - Pause Mission Time —
void
— GameSetMissionTimePaused - Mission Time Paused —
bool
— GameIsMissionTimePaused - Mission Time —
fixed
— GameGetMissionTime - Set Minimum Game Speed —
void
— GameSetSpeedValueMinimum - Lock Game Speed —
void
— GameSetSpeedLocked - Game Speed Factor —
fixed
— GameGetSpeed - Game Speed —
int
<preset::GameSpeed> — GameGetSpeedValue - Global Time Scale —
fixed
— GameGetGlobalTimeScale - Game Speed Minimum —
int
<preset::GameSpeed> — GameGetSpeedValueMinimum - Game Speed Is Locked —
bool
— GameIsSpeedLocked - Attribute Game Value —
string
<attributevalue> — GameAttributeGameValue - Attribute Player Value —
string
<attributevalue> — GameAttributePlayerValue - Players On Team —
playergroup
— GameAttributePlayersForTeam - Turn Fixed Random Seed On/Off —
void
— GameSetSeedLocked - Random Seed Is Locked —
bool
— GameIsSeedLocked - Set Random Seed —
void
— GameSetSeed - Create Saved Game —
void
— GameSaveCreate - Set Game Pausing Allowed —
void
— GameSetPauseable - Set Tradeshow Game Time Remaining —
void
— GameSetAbsoluteTimeRemaining - Pause Tradeshow Game Time Remaining —
void
— GameSetAbsoluteTimeRemainingPaused - Tradeshow Game Time Remaining —
fixed
— GameGetAbsoluteTimeRemaining - Tradeshow Game Time Remaining Is Paused —
bool
— GameGetAbsoluteTimeRemainingPaused - Map Name —
text
— GameMapName - Map Path —
string
— GameMapPath - Map Description —
text
— GameMapDescription - Map Is Blizzard —
bool
— GameMapIsBlizzard - Map Texture Set —
string
<gamelink::Terrain> — GameTerrainSet - Game Is Test —
bool
— GameIsTestMap - Game Is Examinable —
bool
— GameIsExaminable - Game Get Test Config Type —
int
— GameTestConfigType - Game Is Online —
bool
— GameIsOnline - Game Is Debug Option Set —
bool
— GameIsDebugOptionSet - Game Is Matchmade —
bool
— GameIsMatchmade - Game Is Competitive —
bool
— GameIsCompetitive - Game Is Practice —
bool
— GameIsPractice - Game Is Cooperative —
bool
— GameIsCooperative - Game Allows Duplicate Heroes —
bool
— GameAreHeroDuplicatesAllowed
# Examples
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:4061
GameCheatAllow(c_gameCheatVictory, false);
GameSetSpeedValue(c_gameSpeedNormal);
GameSetSpeedLocked(true);
CinematicFade(false, 0.0, c_fadeStyleNormal, Color(0.00, 0.00, 0.00), 0.0, true);
libCamp_gf_LoadCampaignData(32);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:16743
GameSetSpeedValue(c_gameSpeedNormal);
GameSetSpeedLocked(true);
GameTimeOfDaySet("08:00:00");
GameTimeOfDayPause(true);
campaigns/liberty.sc2campaign — base.sc2maps/maps/challenges/advancedcommand.sc2map/MapScript.galaxy:1461
libNtve_gf_CinematicMode(false, PlayerGroupAll(), c_transitionDurationDefault);
libNtve_gf_GlobalCinematicSetting(false);
GameSetSpeedLocked(true);
GameSetSpeedValue(c_gameSpeedNormal);
CinematicFade(true, 1.0, c_fadeStyleNormal, ColorWithAlpha(0.00, 0.00, 0.00, 0.00), 0.0, true);
campaigns/liberty.sc2campaign — base.sc2maps/maps/challenges/economy.sc2map/MapScript.galaxy:1745
TriggerEnable(gt_FinishDefeatNoUnits, true);
UnitPauseAll(false);
GameSetSpeedLocked(true);
GameSetSpeedValue(c_gameSpeedNormal);
CinematicFade(true, 1.0, c_fadeStyleNormal, ColorWithAlpha(0.00, 0.00, 0.00, 0.00), 0.0, false);
campaigns/liberty.sc2campaign — base.sc2maps/maps/challenges/protosscombat.sc2map/MapScript.galaxy:2949
UISetMode(PlayerGroupAll(), c_uiModeConsole, 1.0);
CameraApplyInfo(gv_pLAYER_USER, CameraInfoFromId(49), 1.0, -1, 10, true);
GameSetSpeedLocked(true);
GameSetSpeedValue(c_gameSpeedNormal);
TriggerExecute(gt_StartAI, true, false);
campaigns/liberty.sc2campaign — base.sc2maps/maps/challenges/protosspsionics.sc2map/MapScript.galaxy:1839
libNtve_gf_GlobalCinematicSetting(false);
CameraSetBounds(PlayerGroupAll(), RegionPlayableMap(), true);
GameSetSpeedLocked(true);
GameSetSpeedValue(c_gameSpeedNormal);
CinematicFade(true, 1.0, c_fadeStyleNormal, ColorWithAlpha(0.00, 0.00, 0.00, 0.00), 0.0, true);
campaigns/liberty.sc2campaign — base.sc2maps/maps/challenges/rushdefense.sc2map/MapScript.galaxy:2214
libNtve_gf_GlobalCinematicSetting(false);
UISetMode(PlayerGroupAll(), c_uiModeConsole, 1.0);
GameSetSpeedLocked(true);
GameSetSpeedValue(c_gameSpeedNormal);
CinematicFade(true, 1.0, c_fadeStyleNormal, ColorWithAlpha(0.00, 0.00, 0.00, 0.00), 0.0, false);
campaigns/liberty.sc2campaign — base.sc2maps/maps/challenges/rushdefense.sc2map/MapScript.galaxy:2500
libNtve_gf_GlobalCinematicSetting(false);
UISetMode(PlayerGroupAll(), c_uiModeConsole, 1.0);
GameSetSpeedLocked(true);
GameSetSpeedValue(c_gameSpeedNormal);
CinematicFade(true, 1.0, c_fadeStyleNormal, ColorWithAlpha(0.00, 0.00, 0.00, 0.00), 0.0, false);
campaigns/liberty.sc2campaign — base.sc2maps/maps/challenges/terrancombat.sc2map/MapScript.galaxy:2813
UISetMode(PlayerGroupAll(), c_uiModeConsole, 1.0);
CameraApplyInfo(gv_pLAYER_USER, CameraInfoFromId(49), 1.0, -1, 10, true);
GameSetSpeedLocked(true);
GameSetSpeedValue(c_gameSpeedNormal);
TriggerExecute(gt_StartAI, true, false);
campaigns/liberty.sc2campaign — base.sc2maps/maps/challenges/terrancovertops.sc2map/MapScript.galaxy:1457
libNtve_gf_CinematicMode(false, PlayerGroupAll(), 1.0);
libNtve_gf_GlobalCinematicSetting(false);
GameSetSpeedLocked(true);
GameSetSpeedValue(c_gameSpeedNormal);
CinematicFade(true, 1.0, c_fadeStyleNormal, ColorWithAlpha(0.00, 0.00, 0.00, 0.00), 0.0, true);
campaigns/liberty.sc2campaign — base.sc2maps/maps/challenges/zergcombat.sc2map/MapScript.galaxy:2968
libNtve_gf_GlobalCinematicSetting(false);
UISetMode(PlayerGroupAll(), c_uiModeConsole, 1.0);
GameSetSpeedLocked(true);
GameSetSpeedValue(c_gameSpeedNormal);
TriggerExecute(gt_StartAI, true, false);
campaigns/liberty.sc2campaign — base.sc2maps/maps/challenges/zerginfestation.sc2map/MapScript.galaxy:1398
libNtve_gf_CinematicMode(false, PlayerGroupAll(), 1.0);
libNtve_gf_GlobalCinematicSetting(false);
GameSetSpeedLocked(true);
GameSetSpeedValue(c_gameSpeedNormal);
CinematicFade(true, 1.0, c_fadeStyleNormal, ColorWithAlpha(0.00, 0.00, 0.00, 0.00), 0.0, true);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tarcade.sc2map — MapScript.galaxy:4061
GameCheatAllow(c_gameCheatVictory, false);
GameSetSpeedValue(c_gameSpeedNormal);
GameSetSpeedLocked(true);
CinematicFade(false, 0.0, c_fadeStyleNormal, Color(0.00, 0.00, 0.00), 0.0, true);
libCamp_gf_LoadCampaignData(32);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2map — MapScript.galaxy:16743
GameSetSpeedValue(c_gameSpeedNormal);
GameSetSpeedLocked(true);
GameTimeOfDaySet("08:00:00");
GameTimeOfDayPause(true);
campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/advancedcommand.sc2map — MapScript.galaxy:1461
libNtve_gf_CinematicMode(false, PlayerGroupAll(), c_transitionDurationDefault);
libNtve_gf_GlobalCinematicSetting(false);
GameSetSpeedLocked(true);
GameSetSpeedValue(c_gameSpeedNormal);
CinematicFade(true, 1.0, c_fadeStyleNormal, ColorWithAlpha(0.00, 0.00, 0.00, 0.00), 0.0, true);
campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/economy.sc2map — MapScript.galaxy:1745
TriggerEnable(gt_FinishDefeatNoUnits, true);
UnitPauseAll(false);
GameSetSpeedLocked(true);
GameSetSpeedValue(c_gameSpeedNormal);
CinematicFade(true, 1.0, c_fadeStyleNormal, ColorWithAlpha(0.00, 0.00, 0.00, 0.00), 0.0, false);
campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/protosscombat.sc2map — MapScript.galaxy:2949
UISetMode(PlayerGroupAll(), c_uiModeConsole, 1.0);
CameraApplyInfo(gv_pLAYER_USER, CameraInfoFromId(49), 1.0, -1, 10, true);
GameSetSpeedLocked(true);
GameSetSpeedValue(c_gameSpeedNormal);
TriggerExecute(gt_StartAI, true, false);
campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/protosspsionics.sc2map — MapScript.galaxy:1839
libNtve_gf_GlobalCinematicSetting(false);
CameraSetBounds(PlayerGroupAll(), RegionPlayableMap(), true);
GameSetSpeedLocked(true);
GameSetSpeedValue(c_gameSpeedNormal);
CinematicFade(true, 1.0, c_fadeStyleNormal, ColorWithAlpha(0.00, 0.00, 0.00, 0.00), 0.0, true);
campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/rushdefense.sc2map — MapScript.galaxy:2214
libNtve_gf_GlobalCinematicSetting(false);
UISetMode(PlayerGroupAll(), c_uiModeConsole, 1.0);
GameSetSpeedLocked(true);
GameSetSpeedValue(c_gameSpeedNormal);
CinematicFade(true, 1.0, c_fadeStyleNormal, ColorWithAlpha(0.00, 0.00, 0.00, 0.00), 0.0, false);
campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/rushdefense.sc2map — MapScript.galaxy:2500
libNtve_gf_GlobalCinematicSetting(false);
UISetMode(PlayerGroupAll(), c_uiModeConsole, 1.0);
GameSetSpeedLocked(true);
GameSetSpeedValue(c_gameSpeedNormal);
CinematicFade(true, 1.0, c_fadeStyleNormal, ColorWithAlpha(0.00, 0.00, 0.00, 0.00), 0.0, false);
campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/terrancombat.sc2map — MapScript.galaxy:2813
UISetMode(PlayerGroupAll(), c_uiModeConsole, 1.0);
CameraApplyInfo(gv_pLAYER_USER, CameraInfoFromId(49), 1.0, -1, 10, true);
GameSetSpeedLocked(true);
GameSetSpeedValue(c_gameSpeedNormal);
TriggerExecute(gt_StartAI, true, false);
campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/terrancovertops.sc2map — MapScript.galaxy:1457
libNtve_gf_CinematicMode(false, PlayerGroupAll(), 1.0);
libNtve_gf_GlobalCinematicSetting(false);
GameSetSpeedLocked(true);
GameSetSpeedValue(c_gameSpeedNormal);
CinematicFade(true, 1.0, c_fadeStyleNormal, ColorWithAlpha(0.00, 0.00, 0.00, 0.00), 0.0, true);
campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/zergcombat.sc2map — MapScript.galaxy:2968
libNtve_gf_GlobalCinematicSetting(false);
UISetMode(PlayerGroupAll(), c_uiModeConsole, 1.0);
GameSetSpeedLocked(true);
GameSetSpeedValue(c_gameSpeedNormal);
TriggerExecute(gt_StartAI, true, false);
campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/zerginfestation.sc2map — MapScript.galaxy:1398
libNtve_gf_CinematicMode(false, PlayerGroupAll(), 1.0);
libNtve_gf_GlobalCinematicSetting(false);
GameSetSpeedLocked(true);
GameSetSpeedValue(c_gameSpeedNormal);
CinematicFade(true, 1.0, c_fadeStyleNormal, ColorWithAlpha(0.00, 0.00, 0.00, 0.00), 0.0, true);
campaigns/swarmstoryutil.sc2mod — base.sc2data/Lib281DEC45.galaxy:235
FogSetDisableAtUltra(true);
GameSetSpeedValue(c_gameSpeedNormal);
GameSetSpeedLocked(true);
GameSetQuitOnQuitButton(false);
SoundtrackSetContinuous(PlayerGroupAll(), c_soundtrackCategoryMusic, false);
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignStoryLib.galaxy:609
libNtve_gf_StoryMode(PlayerGroupAll(), true);
GameSetSpeedValue(c_gameSpeedNormal);
GameSetSpeedLocked(true);
GameSetQuitOnQuitButton(false);
SoundtrackSetContinuous(PlayerGroupAll(), c_soundtrackCategoryMusic, false);
mods/core.sc2mod — base.sc2data/TriggerLibs/NativeLib.galaxy:2145
libNtve_gv__CineModeSavedAIPaused = AITimeIsPaused();
AITimePause(true);
GameSetSpeedLocked(true);
GameSetSeedLocked(lp_fixedSeedOnOff);
GamePauseAllCharges(true);
mods/core.sc2mod — base.sc2data/TriggerLibs/NativeLib.galaxy:2160
}
GameSetSpeedLocked(false);
GameSetSeedLocked(false);
GamePauseAllCharges(false);
mods/core.stormmod — base.stormdata/TriggerLibs/NativeLib.galaxy:1829
libNtve_gv__CineModeSavedAIPaused = AITimeIsPaused();
AITimePause(true);
GameSetSpeedLocked(true);
GameSetSeedLocked(true);
GamePauseAllCharges(true);
mods/core.stormmod — base.stormdata/TriggerLibs/NativeLib.galaxy:1844
}
GameSetSpeedLocked(false);
GameSetSeedLocked(false);
GamePauseAllCharges(false);
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialveteran.stormmap/MapScript.galaxy:2003
GameCheatAllow(c_gameCheatDefeat, false);
GameSetSpeedValue(c_gameSpeedNormal);
GameSetSpeedLocked(true);
ConversationDataPreloadLines("TutorialVO");
libGame_gv_pickingHeroesCallback = gt_InitPlayers;
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialveteran.stormmap — MapScript.galaxy:2003
GameCheatAllow(c_gameCheatDefeat, false);
GameSetSpeedValue(c_gameSpeedNormal);
GameSetSpeedLocked(true);
ConversationDataPreloadLines("TutorialVO");
libGame_gv_pickingHeroesCallback = gt_InitPlayers;
mods/heroesbrawlmods/arenamodemods/arenamode.stormmod — base.stormdata/LibAREN.galaxy:91
libAREN_gf_ARM_InitializeCrowdCheerEmitters();
GameSetSpeedValue(c_gameSpeedNormal);
GameSetSpeedLocked(true);
TimerStart(libGame_gv_gobalTimer, c_timerDurationInfinite, false, c_timeGame);
GameSetPauseable(false);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/HeroesLib.galaxy:4804
libCore_gv_dEBUGGameIsOnline = GameIsOnline();
GameSetSpeedValue(c_gameSpeedNormal);
GameSetSpeedLocked(true);
TimerStart(libGame_gv_gobalTimer, c_timerDurationInfinite, false, c_timeGame);
SetScoreTimer(libGame_gv_gameTimer);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/StartingExperienceLib.galaxy:746
libNtve_gf_GlobalCinematicSetting(lp_onOff);
if ((lp_onOff == false)) {
GameSetSpeedLocked(true);
}
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNCST.galaxy:541
libNtve_gf_StoryMode(PlayerGroupAll(), true);
GameSetSpeedValue(c_gameSpeedNormal);
GameSetSpeedLocked(true);
GameSetQuitOnQuitButton(false);
SoundtrackSetContinuous(PlayerGroupAll(), c_soundtrackCategoryMusic, false);
mods/novastoryassets.sc2mod — base.sc2maps/maps/campaign/nova/nova01.sc2map/MapScript.galaxy:9964
libNCMI_gf_CinematicModeCampaign(false, lv_fadeDuration, false);
GameSetSpeedValue(c_gameSpeedFaster);
GameSetSpeedLocked(true);
CameraLockInput(gv_pLAYER_01_USER, true);
VisRevealerCreate(gv_pLAYER_01_USER, RegionFromId(118));
mods/novastoryassets.sc2mod/base.sc2maps/maps/campaign/nova/nova01.sc2map — MapScript.galaxy:9964
libNCMI_gf_CinematicModeCampaign(false, lv_fadeDuration, false);
GameSetSpeedValue(c_gameSpeedFaster);
GameSetSpeedLocked(true);
CameraLockInput(gv_pLAYER_01_USER, true);
VisRevealerCreate(gv_pLAYER_01_USER, RegionFromId(118));
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:12413
TriggerDebugOutput(1, TextExpressionAssemble("Param/Expression/lib_COMI_56E4E616"), false);
}
GameSetSpeedLocked(true);
if ((libCOMU_gf_CT_MutatorInCustom() == false)) {
if (((libCOMI_gf_DifficultyLevelForPlayerCoop(1) == 4) || (libCOMI_gf_DifficultyLevelForPlayerCoop(1) == 3)) && ((libCOMI_gf_DifficultyLevelForPlayerCoop(2) == 4) || (libCOMI_gf_DifficultyLevelForPlayerCoop(2) == 3))) {