# Set Global Time Scale

Grammar — Set the global time scale to timeScale
FlagsNative | Action

Sets the global time scale that affects the time scale of all units.

# Arguments

  • fixed — Time Scale

Returns — void

native void GameSetGlobalTimeScale(fixed timeScale);

Category: Game / Game Settings

# Examples

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/evolution/zevolutionzergling.sc2map/MapScript.galaxy:2343

    TriggerExecute(gt_RaptorEncounterTransmissionQ, true, false);
    CameraLockInput(gv_pLAYER_01_USER, true);
    GameSetGlobalTimeScale(0.3);
    CameraApplyInfo(gv_pLAYER_01_USER, CameraInfoFromId(13), 1.0, -1, 10.0, true);
    Wait(1.0, c_timeGame);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/evolution/zevolutionzergling.sc2map/MapScript.galaxy:2348

    CameraApplyInfo(gv_pLAYER_01_USER, CameraInfoFromId(91), 5.0, -1, 10.0, true);
    TransmissionWait(gv_raptorEncounterTransmission, 1.0);
    GameSetGlobalTimeScale(1.0);
    SoundPlay(SoundLink("Evolution_ZerglingPart1_CameraZoom_Out", -1), PlayerGroupAll(), 100.0, 0.0);
    lv_camera = libNtve_gf_CopyOfCameraObject(CameraInfoDefault());

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/evolution/zevolutionzergling.sc2mapMapScript.galaxy:2343

    TriggerExecute(gt_RaptorEncounterTransmissionQ, true, false);
    CameraLockInput(gv_pLAYER_01_USER, true);
    GameSetGlobalTimeScale(0.3);
    CameraApplyInfo(gv_pLAYER_01_USER, CameraInfoFromId(13), 1.0, -1, 10.0, true);
    Wait(1.0, c_timeGame);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/evolution/zevolutionzergling.sc2mapMapScript.galaxy:2348

    CameraApplyInfo(gv_pLAYER_01_USER, CameraInfoFromId(91), 5.0, -1, 10.0, true);
    TransmissionWait(gv_raptorEncounterTransmission, 1.0);
    GameSetGlobalTimeScale(1.0);
    SoundPlay(SoundLink("Evolution_ZerglingPart1_CameraZoom_Out", -1), PlayerGroupAll(), 100.0, 0.0);
    lv_camera = libNtve_gf_CopyOfCameraObject(CameraInfoDefault());

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:507


            }
            GameSetGlobalTimeScale((GameGetGlobalTimeScale() * 0.8178));
            Wait(0.0625, c_timeGame);
        }

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:517

            libNtve_gf_SetUpgradeLevelForPlayer(auto3E000444_var, "SOAUIFreezePrevent", 8);
        }
        GameSetGlobalTimeScale(0.04);
        if ((libVCMI_gv_pM_SoAForceExit == true)) {
            GameSetGlobalTimeScale(1.0);

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:519

        GameSetGlobalTimeScale(0.04);
        if ((libVCMI_gv_pM_SoAForceExit == true)) {
            GameSetGlobalTimeScale(1.0);
            TriggerExecute(libVCMI_gt_PM_SoATargetingForceOff, true, false);
            return ;

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:595

            for (autoBB182E5F_i = 1; autoBB182E5F_i <= autoBB182E5F_n; autoBB182E5F_i += 1) {
                Wait(0.0625, c_timeGame);
                GameSetGlobalTimeScale((GameGetGlobalTimeScale() * 1.4953));
                auto146275EF_g = PlayerGroupAll();
                auto146275EF_var = -1;

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

        }

        GameSetGlobalTimeScale(1.0);
        autoB2103AAC_g = PlayerGroupAll();
        autoB2103AAC_var = -1;

mods/heroesbrawlmods/brawlmapmods/hanamurapayloadpush.stormmodbase.stormdata/LibMHPP.galaxy:176

    SoundPlayForPlayer(SoundLink("Payload_Brawl_Complete_Sound", -1), c_maxPlayers, PlayerGroupAll(), 100.0, 0.0);
    libGame_gv_gameOver = true;
    GameSetGlobalTimeScale(0.5);
    TimerPause(libGame_gv_gameTimer, true);
    TimerPause(libGame_gv_matchGameplayTimer, true);

mods/heroesbrawlmods/brawlmapmods/pullparty.stormmodbase.stormdata/LibMMPP.galaxy:46

    libGame_gv_gameOver = true;
    UnitPauseAll(true);
    GameSetGlobalTimeScale(0.25);
    VisRevealerCreate(lp_team, RegionEntireMap());
    libNtve_gf_SendActorMessageToGameRegion(RegionEntireMap(), "Signal Pause");