# Pause All Units In Unit Group
Grammar — pause|Pause/Unpause all units in unit group g
Flags —Native
|Action
Pauses or unpauses all units in unit group.
# Arguments
unitgroup
— Unit Groupbool
<preset::PauseUnpauseOption> — Pause
Returns — void
native void UnitGroupPauseAll(
unitgroup inGroup,
bool inPause,
);
# Related
Category: Unit Group / Groups
- Add Unit To Unit Group —
void
— UnitGroupAdd - Add Unit Group To Unit Group Old —
void
— libNtve_gf_AddUnitGroupToUnitGroup - Add Unit Group To Unit Group —
void
— UnitGroupAddUnitGroup - Unit Object Group Call For Help —
void
— UnitObjectGroupCallForHelp - Remove Unit From Unit Group —
void
— UnitGroupRemove - Remove Unit Group From Unit Group Old —
void
— libNtve_gf_RemoveUnitGroupFromUnitGroup - Remove Unit Group From Unit Group —
void
— UnitGroupRemoveUnitGroup - Remove All Units From Unit Group —
void
— UnitGroupClear - Pause All Units In Unit Group —
void
— UnitGroupPauseAll - Create Unit Object Group From Unit Group —
int
— UnitObjectGroupFromUnitGroup - Number Of Units In Unit Group —
int
— UnitGroupCount - Unit In Unit Group —
bool
— UnitGroupHasUnit - Unit From Unit Group —
unit
— UnitGroupUnit - Random Unit From Unit Group —
unit
— UnitGroupRandomUnit - Copy Of Unit Group —
unitgroup
— UnitGroupCopy - Closest Unit To Point Old —
unit
— libNtve_gf_ClosestUnitToPoint - Closest Unit To Point —
unit
— UnitGroupClosestToPoint - Center Of Unit Group Old —
point
— libNtve_gf_CenterOfUnitGroup - Center Of Unit Group —
point
— UnitGroupCenterOfGroup
# Examples
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur06.sc2map/MapScript.galaxy:1500
}
UnitGroupPauseAll(gv_performanceUnitsNW, true);
UnitGroupPauseAll(gv_performanceUnitsSE, true);
UnitGroupPauseAll(gv_performanceUnitsSW, true);
campaigns/void.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.sc2maps/maps/campaign/void/paiur06.sc2map/MapScript.galaxy:1529
TriggerEnable(TriggerGetCurrent(), false);
UnitGroupPauseAll(gv_performanceUnitsSE, false);
gv_performanceUnitsSE = UnitGroupEmpty();
return true;
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur06.sc2map/MapScript.galaxy:1558
TriggerEnable(TriggerGetCurrent(), false);
UnitGroupPauseAll(gv_performanceUnitsNW, false);
gv_performanceUnitsNW = UnitGroupEmpty();
return true;
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur06.sc2map/MapScript.galaxy:1587
TriggerEnable(TriggerGetCurrent(), false);
UnitGroupPauseAll(gv_performanceUnitsSW, false);
gv_performanceUnitsSW = UnitGroupEmpty();
return true;
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur06.sc2map/MapScript.galaxy:1630
}
UnitGroupPauseAll(gv_performanceUnitsSE, false);
UnitGroupPauseAll(gv_performanceUnitsNW, false);
UnitGroupPauseAll(gv_performanceUnitsSW, false);
campaigns/void.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2map — MapScript.galaxy:1500
}
UnitGroupPauseAll(gv_performanceUnitsNW, true);
UnitGroupPauseAll(gv_performanceUnitsSE, true);
UnitGroupPauseAll(gv_performanceUnitsSW, true);
campaigns/void.sc2campaign/base.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.sc2campaign/base.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.sc2campaign/base.sc2maps/maps/campaign/void/paiur06.sc2map — MapScript.galaxy:1529
TriggerEnable(TriggerGetCurrent(), false);
UnitGroupPauseAll(gv_performanceUnitsSE, false);
gv_performanceUnitsSE = UnitGroupEmpty();
return true;
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur06.sc2map — MapScript.galaxy:1558
TriggerEnable(TriggerGetCurrent(), false);
UnitGroupPauseAll(gv_performanceUnitsNW, false);
gv_performanceUnitsNW = UnitGroupEmpty();
return true;
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur06.sc2map — MapScript.galaxy:1587
TriggerEnable(TriggerGetCurrent(), false);
UnitGroupPauseAll(gv_performanceUnitsSW, false);
gv_performanceUnitsSW = UnitGroupEmpty();
return true;
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur06.sc2map — MapScript.galaxy:1630
}
UnitGroupPauseAll(gv_performanceUnitsSE, false);
UnitGroupPauseAll(gv_performanceUnitsNW, false);
UnitGroupPauseAll(gv_performanceUnitsSW, false);
campaigns/void.sc2campaign/base.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.sc2campaign/base.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.sc2campaign/base.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.sc2campaign/base.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.sc2campaign/base.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.sc2campaign/base.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.sc2campaign/base.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.sc2campaign/base.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.sc2campaign/base.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.sc2campaign/base.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.sc2campaign/base.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.sc2campaign/base.sc2maps/maps/campaign/void/sc2epilogue01.sc2map — MapScript.galaxy:2535
TriggerEnable(TriggerGetCurrent(), false);
UnitGroupPauseAll(gv_performanceUnitsMid[3], false);
gv_performanceUnitsMid[3] = UnitGroupEmpty();
return true;
mods/novastoryassets.sc2mod — base3.sc2maps/maps/campaign/nova/nova07.sc2map/MapScript.galaxy:2260
}
UnitGroupPauseAll(gv_gearSwapPausedUnits, true);
CameraLockInput(gv_pLAYER_01_USER, true);
libNCMI_gf_OpenNovaEquipmentScreen();
mods/novastoryassets.sc2mod — base3.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.sc2map — MapScript.galaxy:2260
}
UnitGroupPauseAll(gv_gearSwapPausedUnits, true);
CameraLockInput(gv_pLAYER_01_USER, true);
libNCMI_gf_OpenNovaEquipmentScreen();
mods/novastoryassets.sc2mod/base3.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);