# Pause All Units In Unit Group

Grammarpause|Pause/Unpause all units in unit group g
FlagsNative | Action

Pauses or unpauses all units in unit group.

# Arguments

Returns — void

native void UnitGroupPauseAll(
	unitgroup inGroup,
	bool inPause,
);

Category: Unit Group / Groups

# Examples

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/paiur06.sc2map/MapScript.galaxy:1500

    }

    UnitGroupPauseAll(gv_performanceUnitsNW, true);
    UnitGroupPauseAll(gv_performanceUnitsSE, true);
    UnitGroupPauseAll(gv_performanceUnitsSW, true);

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/paiur06.sc2map/MapScript.galaxy:1501


    UnitGroupPauseAll(gv_performanceUnitsNW, true);
    UnitGroupPauseAll(gv_performanceUnitsSE, true);
    UnitGroupPauseAll(gv_performanceUnitsSW, true);
    return true;

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/paiur06.sc2map/MapScript.galaxy:1502

    UnitGroupPauseAll(gv_performanceUnitsNW, true);
    UnitGroupPauseAll(gv_performanceUnitsSE, true);
    UnitGroupPauseAll(gv_performanceUnitsSW, true);
    return true;
}

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/paiur06.sc2map/MapScript.galaxy:1529


    TriggerEnable(TriggerGetCurrent(), false);
    UnitGroupPauseAll(gv_performanceUnitsSE, false);
    gv_performanceUnitsSE = UnitGroupEmpty();
    return true;

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/paiur06.sc2map/MapScript.galaxy:1558


    TriggerEnable(TriggerGetCurrent(), false);
    UnitGroupPauseAll(gv_performanceUnitsNW, false);
    gv_performanceUnitsNW = UnitGroupEmpty();
    return true;

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/paiur06.sc2map/MapScript.galaxy:1587


    TriggerEnable(TriggerGetCurrent(), false);
    UnitGroupPauseAll(gv_performanceUnitsSW, false);
    gv_performanceUnitsSW = UnitGroupEmpty();
    return true;

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/paiur06.sc2map/MapScript.galaxy:1630

    }

    UnitGroupPauseAll(gv_performanceUnitsSE, false);
    UnitGroupPauseAll(gv_performanceUnitsNW, false);
    UnitGroupPauseAll(gv_performanceUnitsSW, false);

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/paiur06.sc2map/MapScript.galaxy:1631


    UnitGroupPauseAll(gv_performanceUnitsSE, false);
    UnitGroupPauseAll(gv_performanceUnitsNW, false);
    UnitGroupPauseAll(gv_performanceUnitsSW, false);
    Wait(IntToFixed(CatalogFieldValueGetAsInt(c_gameCatalogBehavior, "SOATimeFreeze", "Duration", c_playerAny)), c_timeGame);

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/paiur06.sc2map/MapScript.galaxy:1632

    UnitGroupPauseAll(gv_performanceUnitsSE, false);
    UnitGroupPauseAll(gv_performanceUnitsNW, false);
    UnitGroupPauseAll(gv_performanceUnitsSW, false);
    Wait(IntToFixed(CatalogFieldValueGetAsInt(c_gameCatalogBehavior, "SOATimeFreeze", "Duration", c_playerAny)), c_timeGame);
    Wait(3.0, c_timeGame);

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/sc2epilogue01.sc2map/MapScript.galaxy:2325

    lv_indexGroup = 1;
    for ( ; ( (auto441163CD_ai >= 0 && lv_indexGroup <= auto441163CD_ae) || (auto441163CD_ai < 0 && lv_indexGroup >= auto441163CD_ae) ) ; lv_indexGroup += auto441163CD_ai ) {
        UnitGroupPauseAll(gv_performanceUnitsBonus[lv_indexGroup], true);
    }
    lv_indexGroup = 1;

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/sc2epilogue01.sc2map/MapScript.galaxy:2329

    lv_indexGroup = 1;
    for ( ; ( (auto653622EB_ai >= 0 && lv_indexGroup <= auto653622EB_ae) || (auto653622EB_ai < 0 && lv_indexGroup >= auto653622EB_ae) ) ; lv_indexGroup += auto653622EB_ai ) {
        UnitGroupPauseAll(gv_performanceUnitsMid[lv_indexGroup], true);
    }
    lv_indexGroup = 1;

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/sc2epilogue01.sc2map/MapScript.galaxy:2333

    lv_indexGroup = 1;
    for ( ; ( (autoF9D91B78_ai >= 0 && lv_indexGroup <= autoF9D91B78_ae) || (autoF9D91B78_ai < 0 && lv_indexGroup >= autoF9D91B78_ae) ) ; lv_indexGroup += autoF9D91B78_ai ) {
        UnitGroupPauseAll(gv_performanceUnitsExpo[lv_indexGroup], true);
    }
    return true;

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/sc2epilogue01.sc2map/MapScript.galaxy:2361


    TriggerEnable(TriggerGetCurrent(), false);
    UnitGroupPauseAll(gv_performanceUnitsBonus[1], false);
    gv_performanceUnitsBonus[1] = UnitGroupEmpty();
    return true;

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/sc2epilogue01.sc2map/MapScript.galaxy:2390


    TriggerEnable(TriggerGetCurrent(), false);
    UnitGroupPauseAll(gv_performanceUnitsBonus[2], false);
    gv_performanceUnitsBonus[2] = UnitGroupEmpty();
    return true;

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/sc2epilogue01.sc2map/MapScript.galaxy:2419


    TriggerEnable(TriggerGetCurrent(), false);
    UnitGroupPauseAll(gv_performanceUnitsBonus[3], false);
    gv_performanceUnitsBonus[3] = UnitGroupEmpty();
    return true;

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/sc2epilogue01.sc2map/MapScript.galaxy:2448


    TriggerEnable(TriggerGetCurrent(), false);
    UnitGroupPauseAll(gv_performanceUnitsBonus[4], false);
    gv_performanceUnitsBonus[4] = UnitGroupEmpty();
    return true;

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/sc2epilogue01.sc2map/MapScript.galaxy:2477


    TriggerEnable(TriggerGetCurrent(), false);
    UnitGroupPauseAll(gv_performanceUnitsMid[1], false);
    gv_performanceUnitsMid[1] = UnitGroupEmpty();
    return true;

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/sc2epilogue01.sc2map/MapScript.galaxy:2506


    TriggerEnable(TriggerGetCurrent(), false);
    UnitGroupPauseAll(gv_performanceUnitsMid[2], false);
    gv_performanceUnitsMid[2] = UnitGroupEmpty();
    return true;

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/sc2epilogue01.sc2map/MapScript.galaxy:2535


    TriggerEnable(TriggerGetCurrent(), false);
    UnitGroupPauseAll(gv_performanceUnitsMid[3], false);
    gv_performanceUnitsMid[3] = UnitGroupEmpty();
    return true;

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur06.sc2mapMapScript.galaxy:1500

    }

    UnitGroupPauseAll(gv_performanceUnitsNW, true);
    UnitGroupPauseAll(gv_performanceUnitsSE, true);
    UnitGroupPauseAll(gv_performanceUnitsSW, true);

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur06.sc2mapMapScript.galaxy:1501


    UnitGroupPauseAll(gv_performanceUnitsNW, true);
    UnitGroupPauseAll(gv_performanceUnitsSE, true);
    UnitGroupPauseAll(gv_performanceUnitsSW, true);
    return true;

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur06.sc2mapMapScript.galaxy:1502

    UnitGroupPauseAll(gv_performanceUnitsNW, true);
    UnitGroupPauseAll(gv_performanceUnitsSE, true);
    UnitGroupPauseAll(gv_performanceUnitsSW, true);
    return true;
}

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur06.sc2mapMapScript.galaxy:1529


    TriggerEnable(TriggerGetCurrent(), false);
    UnitGroupPauseAll(gv_performanceUnitsSE, false);
    gv_performanceUnitsSE = UnitGroupEmpty();
    return true;

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur06.sc2mapMapScript.galaxy:1558


    TriggerEnable(TriggerGetCurrent(), false);
    UnitGroupPauseAll(gv_performanceUnitsNW, false);
    gv_performanceUnitsNW = UnitGroupEmpty();
    return true;

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur06.sc2mapMapScript.galaxy:1587


    TriggerEnable(TriggerGetCurrent(), false);
    UnitGroupPauseAll(gv_performanceUnitsSW, false);
    gv_performanceUnitsSW = UnitGroupEmpty();
    return true;

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur06.sc2mapMapScript.galaxy:1630

    }

    UnitGroupPauseAll(gv_performanceUnitsSE, false);
    UnitGroupPauseAll(gv_performanceUnitsNW, false);
    UnitGroupPauseAll(gv_performanceUnitsSW, false);

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur06.sc2mapMapScript.galaxy:1631


    UnitGroupPauseAll(gv_performanceUnitsSE, false);
    UnitGroupPauseAll(gv_performanceUnitsNW, false);
    UnitGroupPauseAll(gv_performanceUnitsSW, false);
    Wait(IntToFixed(CatalogFieldValueGetAsInt(c_gameCatalogBehavior, "SOATimeFreeze", "Duration", c_playerAny)), c_timeGame);

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur06.sc2mapMapScript.galaxy:1632

    UnitGroupPauseAll(gv_performanceUnitsSE, false);
    UnitGroupPauseAll(gv_performanceUnitsNW, false);
    UnitGroupPauseAll(gv_performanceUnitsSW, false);
    Wait(IntToFixed(CatalogFieldValueGetAsInt(c_gameCatalogBehavior, "SOATimeFreeze", "Duration", c_playerAny)), c_timeGame);
    Wait(3.0, c_timeGame);

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/sc2epilogue01.sc2mapMapScript.galaxy:2325

    lv_indexGroup = 1;
    for ( ; ( (auto441163CD_ai >= 0 && lv_indexGroup <= auto441163CD_ae) || (auto441163CD_ai < 0 && lv_indexGroup >= auto441163CD_ae) ) ; lv_indexGroup += auto441163CD_ai ) {
        UnitGroupPauseAll(gv_performanceUnitsBonus[lv_indexGroup], true);
    }
    lv_indexGroup = 1;

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/sc2epilogue01.sc2mapMapScript.galaxy:2329

    lv_indexGroup = 1;
    for ( ; ( (auto653622EB_ai >= 0 && lv_indexGroup <= auto653622EB_ae) || (auto653622EB_ai < 0 && lv_indexGroup >= auto653622EB_ae) ) ; lv_indexGroup += auto653622EB_ai ) {
        UnitGroupPauseAll(gv_performanceUnitsMid[lv_indexGroup], true);
    }
    lv_indexGroup = 1;

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/sc2epilogue01.sc2mapMapScript.galaxy:2333

    lv_indexGroup = 1;
    for ( ; ( (autoF9D91B78_ai >= 0 && lv_indexGroup <= autoF9D91B78_ae) || (autoF9D91B78_ai < 0 && lv_indexGroup >= autoF9D91B78_ae) ) ; lv_indexGroup += autoF9D91B78_ai ) {
        UnitGroupPauseAll(gv_performanceUnitsExpo[lv_indexGroup], true);
    }
    return true;

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/sc2epilogue01.sc2mapMapScript.galaxy:2361


    TriggerEnable(TriggerGetCurrent(), false);
    UnitGroupPauseAll(gv_performanceUnitsBonus[1], false);
    gv_performanceUnitsBonus[1] = UnitGroupEmpty();
    return true;

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/sc2epilogue01.sc2mapMapScript.galaxy:2390


    TriggerEnable(TriggerGetCurrent(), false);
    UnitGroupPauseAll(gv_performanceUnitsBonus[2], false);
    gv_performanceUnitsBonus[2] = UnitGroupEmpty();
    return true;

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/sc2epilogue01.sc2mapMapScript.galaxy:2419


    TriggerEnable(TriggerGetCurrent(), false);
    UnitGroupPauseAll(gv_performanceUnitsBonus[3], false);
    gv_performanceUnitsBonus[3] = UnitGroupEmpty();
    return true;

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/sc2epilogue01.sc2mapMapScript.galaxy:2448


    TriggerEnable(TriggerGetCurrent(), false);
    UnitGroupPauseAll(gv_performanceUnitsBonus[4], false);
    gv_performanceUnitsBonus[4] = UnitGroupEmpty();
    return true;

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/sc2epilogue01.sc2mapMapScript.galaxy:2477


    TriggerEnable(TriggerGetCurrent(), false);
    UnitGroupPauseAll(gv_performanceUnitsMid[1], false);
    gv_performanceUnitsMid[1] = UnitGroupEmpty();
    return true;

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/sc2epilogue01.sc2mapMapScript.galaxy:2506


    TriggerEnable(TriggerGetCurrent(), false);
    UnitGroupPauseAll(gv_performanceUnitsMid[2], false);
    gv_performanceUnitsMid[2] = UnitGroupEmpty();
    return true;

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/sc2epilogue01.sc2mapMapScript.galaxy:2535


    TriggerEnable(TriggerGetCurrent(), false);
    UnitGroupPauseAll(gv_performanceUnitsMid[3], false);
    gv_performanceUnitsMid[3] = UnitGroupEmpty();
    return true;

mods/novastoryassets.sc2modbase3.sc2maps/maps/campaign/nova/nova07.sc2map/MapScript.galaxy:2260


    }
    UnitGroupPauseAll(gv_gearSwapPausedUnits, true);
    CameraLockInput(gv_pLAYER_01_USER, true);
    libNCMI_gf_OpenNovaEquipmentScreen();

mods/novastoryassets.sc2modbase3.sc2maps/maps/campaign/nova/nova07.sc2map/MapScript.galaxy:2299

    libNtve_gf_MakeUnitInvulnerable(gv_nova, false);
    libNtve_gf_MakeUnitUncommandable(gv_nova, false);
    UnitGroupPauseAll(gv_gearSwapPausedUnits, false);
    CameraLockInput(gv_pLAYER_01_USER, false);
    libComC_gf_PauseAITimeCampaign(false);

mods/novastoryassets.sc2mod/base3.sc2maps/maps/campaign/nova/nova07.sc2mapMapScript.galaxy:2260


    }
    UnitGroupPauseAll(gv_gearSwapPausedUnits, true);
    CameraLockInput(gv_pLAYER_01_USER, true);
    libNCMI_gf_OpenNovaEquipmentScreen();

mods/novastoryassets.sc2mod/base3.sc2maps/maps/campaign/nova/nova07.sc2mapMapScript.galaxy:2299

    libNtve_gf_MakeUnitInvulnerable(gv_nova, false);
    libNtve_gf_MakeUnitUncommandable(gv_nova, false);
    UnitGroupPauseAll(gv_gearSwapPausedUnits, false);
    CameraLockInput(gv_pLAYER_01_USER, false);
    libComC_gf_PauseAITimeCampaign(false);