# Lock Game Speed

GrammarlockUnlock game speed
FlagsNative | Action

Lock the game speed, rendering it unable to be changed.

# Arguments

Returns — void

native void GameSetSpeedLocked(bool isLocked);

Category: Game / Game Settings

# Examples

campaigns/liberty.sc2campaignbase.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.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:16743


    GameSetSpeedValue(c_gameSpeedNormal);
    GameSetSpeedLocked(true);
    GameTimeOfDaySet("08:00:00");
    GameTimeOfDayPause(true);

campaigns/liberty.sc2campaignbase.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.sc2campaignbase.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.sc2campaignbase.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.sc2campaignbase.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.sc2campaignbase.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.sc2campaignbase.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.sc2campaignbase.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.sc2campaignbase.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.sc2campaignbase.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.sc2campaignbase.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.sc2mapMapScript.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.sc2mapMapScript.galaxy:16743


    GameSetSpeedValue(c_gameSpeedNormal);
    GameSetSpeedLocked(true);
    GameTimeOfDaySet("08:00:00");
    GameTimeOfDayPause(true);

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/advancedcommand.sc2mapMapScript.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.sc2mapMapScript.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.sc2mapMapScript.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.sc2mapMapScript.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.sc2mapMapScript.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.sc2mapMapScript.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.sc2mapMapScript.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.sc2mapMapScript.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.sc2mapMapScript.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.sc2mapMapScript.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.sc2modbase.sc2data/Lib281DEC45.galaxy:235

    FogSetDisableAtUltra(true);
    GameSetSpeedValue(c_gameSpeedNormal);
    GameSetSpeedLocked(true);
    GameSetQuitOnQuitButton(false);
    SoundtrackSetContinuous(PlayerGroupAll(), c_soundtrackCategoryMusic, false);

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignStoryLib.galaxy:609

    libNtve_gf_StoryMode(PlayerGroupAll(), true);
    GameSetSpeedValue(c_gameSpeedNormal);
    GameSetSpeedLocked(true);
    GameSetQuitOnQuitButton(false);
    SoundtrackSetContinuous(PlayerGroupAll(), c_soundtrackCategoryMusic, false);

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:2145

        libNtve_gv__CineModeSavedAIPaused = AITimeIsPaused();
        AITimePause(true);
        GameSetSpeedLocked(true);
        GameSetSeedLocked(lp_fixedSeedOnOff);
        GamePauseAllCharges(true);

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:2160

        }

        GameSetSpeedLocked(false);
        GameSetSeedLocked(false);
        GamePauseAllCharges(false);

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:1829

        libNtve_gv__CineModeSavedAIPaused = AITimeIsPaused();
        AITimePause(true);
        GameSetSpeedLocked(true);
        GameSetSeedLocked(true);
        GamePauseAllCharges(true);

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:1844

        }

        GameSetSpeedLocked(false);
        GameSetSeedLocked(false);
        GamePauseAllCharges(false);

mods/heroes.stormmodbase.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.stormmapMapScript.galaxy:2003

    GameCheatAllow(c_gameCheatDefeat, false);
    GameSetSpeedValue(c_gameSpeedNormal);
    GameSetSpeedLocked(true);
    ConversationDataPreloadLines("TutorialVO");
    libGame_gv_pickingHeroesCallback = gt_InitPlayers;

mods/heroesbrawlmods/arenamodemods/arenamode.stormmodbase.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.stormmodbase.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.stormmodbase.stormdata/TriggerLibs/StartingExperienceLib.galaxy:746

    libNtve_gf_GlobalCinematicSetting(lp_onOff);
    if ((lp_onOff == false)) {
        GameSetSpeedLocked(true);
    }

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNCST.galaxy:541

    libNtve_gf_StoryMode(PlayerGroupAll(), true);
    GameSetSpeedValue(c_gameSpeedNormal);
    GameSetSpeedLocked(true);
    GameSetQuitOnQuitButton(false);
    SoundtrackSetContinuous(PlayerGroupAll(), c_soundtrackCategoryMusic, false);

mods/novastoryassets.sc2modbase.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.sc2mapMapScript.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.sc2modbase.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))) {