# UnitGroupFromId
Flags —
Native
# Arguments
int
— id
Returns — unitgroup
native unitgroup UnitGroupFromId(int id);
# Related
Category: Unclassified
# Examples
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zchar01.sc2map/MapScript.galaxy:875
if (((libSwaC_gf_MissionStatusCheck("ZExpedition3", libSwaC_ge_MissionStatus_Completed) == false) || (libSwaC_gf_MissionStatusCheck("ZZerus3", libSwaC_ge_MissionStatus_Completed) == false))) {
autoC0EB5ADF_g = UnitGroupFromId(1);
autoC0EB5ADF_u = UnitGroupCount(autoC0EB5ADF_g, c_unitCountAll);
for (;; autoC0EB5ADF_u -= 1) {
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zchar01.sc2map/MapScript.galaxy:5746
UnitCreate(1, "ZerglingBurrowed", 0, gv_pLAYER_02_ZERG, RegionRandomPoint(RegionFromId(5)), libNtve_gf_RandomAngle());
}
autoC7F749AD_g = UnitGroupFromId(1);
autoC7F749AD_u = UnitGroupCount(autoC7F749AD_g, c_unitCountAll);
for (;; autoC7F749AD_u -= 1) {
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zchar01.sc2map — MapScript.galaxy:875
if (((libSwaC_gf_MissionStatusCheck("ZExpedition3", libSwaC_ge_MissionStatus_Completed) == false) || (libSwaC_gf_MissionStatusCheck("ZZerus3", libSwaC_ge_MissionStatus_Completed) == false))) {
autoC0EB5ADF_g = UnitGroupFromId(1);
autoC0EB5ADF_u = UnitGroupCount(autoC0EB5ADF_g, c_unitCountAll);
for (;; autoC0EB5ADF_u -= 1) {
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zchar01.sc2map — MapScript.galaxy:5746
UnitCreate(1, "ZerglingBurrowed", 0, gv_pLAYER_02_ZERG, RegionRandomPoint(RegionFromId(5)), libNtve_gf_RandomAngle());
}
autoC7F749AD_g = UnitGroupFromId(1);
autoC7F749AD_u = UnitGroupCount(autoC7F749AD_g, c_unitCountAll);
for (;; autoC7F749AD_u -= 1) {
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur01.sc2map/MapScript.galaxy:1444
}
auto71764BC3_g = UnitGroupFromId(1);
auto71764BC3_u = UnitGroupCount(auto71764BC3_g, c_unitCountAll);
for (;; auto71764BC3_u -= 1) {
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur01.sc2map/MapScript.galaxy:1451
libNtve_gf_PauseUnit(auto71764BC3_var, true);
}
autoB2FC66DD_g = UnitGroupFromId(2);
autoB2FC66DD_u = UnitGroupCount(autoB2FC66DD_g, c_unitCountAll);
for (;; autoB2FC66DD_u -= 1) {
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur01.sc2map/MapScript.galaxy:1458
libNtve_gf_PauseUnit(autoB2FC66DD_var, true);
}
auto9686DA86_g = UnitGroupFromId(3);
auto9686DA86_u = UnitGroupCount(auto9686DA86_g, c_unitCountAll);
for (;; auto9686DA86_u -= 1) {
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur01.sc2map/MapScript.galaxy:1465
libNtve_gf_PauseUnit(auto9686DA86_var, true);
}
autoADC65C4C_g = UnitGroupFromId(4);
autoADC65C4C_u = UnitGroupCount(autoADC65C4C_g, c_unitCountAll);
for (;; autoADC65C4C_u -= 1) {
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur01.sc2map/MapScript.galaxy:1472
libNtve_gf_PauseUnit(autoADC65C4C_var, true);
}
auto9175503F_g = UnitGroupFromId(5);
auto9175503F_u = UnitGroupCount(auto9175503F_g, c_unitCountAll);
for (;; auto9175503F_u -= 1) {
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur01.sc2map/MapScript.galaxy:1479
libNtve_gf_PauseUnit(auto9175503F_var, true);
}
autoBBEE4F36_g = UnitGroupFromId(6);
autoBBEE4F36_u = UnitGroupCount(autoBBEE4F36_g, c_unitCountAll);
for (;; autoBBEE4F36_u -= 1) {
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur01.sc2map/MapScript.galaxy:1516
TriggerEnable(TriggerGetCurrent(), false);
auto4FCFEAA8_g = UnitGroupFromId(1);
auto4FCFEAA8_u = UnitGroupCount(auto4FCFEAA8_g, c_unitCountAll);
for (;; auto4FCFEAA8_u -= 1) {
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur01.sc2map/MapScript.galaxy:1554
TriggerEnable(TriggerGetCurrent(), false);
auto6535EE43_g = UnitGroupFromId(2);
auto6535EE43_u = UnitGroupCount(auto6535EE43_g, c_unitCountAll);
for (;; auto6535EE43_u -= 1) {
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur01.sc2map/MapScript.galaxy:1592
TriggerEnable(TriggerGetCurrent(), false);
autoB81F3F80_g = UnitGroupFromId(3);
autoB81F3F80_u = UnitGroupCount(autoB81F3F80_g, c_unitCountAll);
for (;; autoB81F3F80_u -= 1) {
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur01.sc2map/MapScript.galaxy:1630
TriggerEnable(TriggerGetCurrent(), false);
auto0ADC7CBD_g = UnitGroupFromId(4);
auto0ADC7CBD_u = UnitGroupCount(auto0ADC7CBD_g, c_unitCountAll);
for (;; auto0ADC7CBD_u -= 1) {
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/sc2epilogue02.sc2map/MapScript.galaxy:1161
UnitSetPropertyFixed(auto5D8FC6BE_var, c_unitPropEnergyPercent, 100.0);
}
auto80F18A9F_g = UnitGroupFromId(2);
auto80F18A9F_u = UnitGroupCount(auto80F18A9F_g, c_unitCountAll);
for (;; auto80F18A9F_u -= 1) {
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/sc2epilogue02.sc2map/MapScript.galaxy:1168
libNtve_gf_ShowHideUnit(auto80F18A9F_var, false);
}
auto67A846B0_g = UnitGroupFromId(3);
auto67A846B0_u = UnitGroupCount(auto67A846B0_g, c_unitCountAll);
for (;; auto67A846B0_u -= 1) {
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/sc2epilogue02.sc2map/MapScript.galaxy:1175
libNtve_gf_ShowHideUnit(auto67A846B0_var, false);
}
autoE6D587F9_g = UnitGroupFromId(5);
autoE6D587F9_u = UnitGroupCount(autoE6D587F9_g, c_unitCountAll);
for (;; autoE6D587F9_u -= 1) {
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/sc2epilogue02.sc2map/MapScript.galaxy:1182
libNtve_gf_ShowHideUnit(autoE6D587F9_var, false);
}
autoF86921CE_g = UnitGroupFromId(6);
autoF86921CE_u = UnitGroupCount(autoF86921CE_g, c_unitCountAll);
for (;; autoF86921CE_u -= 1) {
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/sc2epilogue02.sc2map/MapScript.galaxy:2407
TriggerEnable(TriggerGetCurrent(), false);
auto42C3AF01_g = UnitGroupFromId(5);
auto42C3AF01_u = UnitGroupCount(auto42C3AF01_g, c_unitCountAll);
for (;; auto42C3AF01_u -= 1) {
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/sc2epilogue02.sc2map/MapScript.galaxy:2460
TriggerEnable(TriggerGetCurrent(), false);
auto2FB70C92_g = UnitGroupFromId(6);
auto2FB70C92_u = UnitGroupCount(auto2FB70C92_g, c_unitCountAll);
for (;; auto2FB70C92_u -= 1) {
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/sc2epilogue02.sc2map/MapScript.galaxy:2559
TriggerEnable(TriggerGetCurrent(), false);
autoF6B58830_g = UnitGroupFromId(2);
autoF6B58830_u = UnitGroupCount(autoF6B58830_g, c_unitCountAll);
for (;; autoF6B58830_u -= 1) {
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/sc2epilogue02.sc2map/MapScript.galaxy:2614
TriggerEnable(TriggerGetCurrent(), false);
auto850290AD_g = UnitGroupFromId(3);
auto850290AD_u = UnitGroupCount(auto850290AD_g, c_unitCountAll);
for (;; auto850290AD_u -= 1) {
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/sc2epilogue02.sc2map/MapScript.galaxy:7983
}
libNtve_gf_ShowHideUnit(UnitFromId(621), true);
auto33881E3C_g = UnitGroupFromId(1);
auto33881E3C_u = UnitGroupCount(auto33881E3C_g, c_unitCountAll);
for (;; auto33881E3C_u -= 1) {
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur01.sc2map — MapScript.galaxy:1444
}
auto71764BC3_g = UnitGroupFromId(1);
auto71764BC3_u = UnitGroupCount(auto71764BC3_g, c_unitCountAll);
for (;; auto71764BC3_u -= 1) {
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur01.sc2map — MapScript.galaxy:1451
libNtve_gf_PauseUnit(auto71764BC3_var, true);
}
autoB2FC66DD_g = UnitGroupFromId(2);
autoB2FC66DD_u = UnitGroupCount(autoB2FC66DD_g, c_unitCountAll);
for (;; autoB2FC66DD_u -= 1) {
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur01.sc2map — MapScript.galaxy:1458
libNtve_gf_PauseUnit(autoB2FC66DD_var, true);
}
auto9686DA86_g = UnitGroupFromId(3);
auto9686DA86_u = UnitGroupCount(auto9686DA86_g, c_unitCountAll);
for (;; auto9686DA86_u -= 1) {
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur01.sc2map — MapScript.galaxy:1465
libNtve_gf_PauseUnit(auto9686DA86_var, true);
}
autoADC65C4C_g = UnitGroupFromId(4);
autoADC65C4C_u = UnitGroupCount(autoADC65C4C_g, c_unitCountAll);
for (;; autoADC65C4C_u -= 1) {
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur01.sc2map — MapScript.galaxy:1472
libNtve_gf_PauseUnit(autoADC65C4C_var, true);
}
auto9175503F_g = UnitGroupFromId(5);
auto9175503F_u = UnitGroupCount(auto9175503F_g, c_unitCountAll);
for (;; auto9175503F_u -= 1) {
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur01.sc2map — MapScript.galaxy:1479
libNtve_gf_PauseUnit(auto9175503F_var, true);
}
autoBBEE4F36_g = UnitGroupFromId(6);
autoBBEE4F36_u = UnitGroupCount(autoBBEE4F36_g, c_unitCountAll);
for (;; autoBBEE4F36_u -= 1) {
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur01.sc2map — MapScript.galaxy:1516
TriggerEnable(TriggerGetCurrent(), false);
auto4FCFEAA8_g = UnitGroupFromId(1);
auto4FCFEAA8_u = UnitGroupCount(auto4FCFEAA8_g, c_unitCountAll);
for (;; auto4FCFEAA8_u -= 1) {
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur01.sc2map — MapScript.galaxy:1554
TriggerEnable(TriggerGetCurrent(), false);
auto6535EE43_g = UnitGroupFromId(2);
auto6535EE43_u = UnitGroupCount(auto6535EE43_g, c_unitCountAll);
for (;; auto6535EE43_u -= 1) {
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur01.sc2map — MapScript.galaxy:1592
TriggerEnable(TriggerGetCurrent(), false);
autoB81F3F80_g = UnitGroupFromId(3);
autoB81F3F80_u = UnitGroupCount(autoB81F3F80_g, c_unitCountAll);
for (;; autoB81F3F80_u -= 1) {
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur01.sc2map — MapScript.galaxy:1630
TriggerEnable(TriggerGetCurrent(), false);
auto0ADC7CBD_g = UnitGroupFromId(4);
auto0ADC7CBD_u = UnitGroupCount(auto0ADC7CBD_g, c_unitCountAll);
for (;; auto0ADC7CBD_u -= 1) {
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/sc2epilogue02.sc2map — MapScript.galaxy:1161
UnitSetPropertyFixed(auto5D8FC6BE_var, c_unitPropEnergyPercent, 100.0);
}
auto80F18A9F_g = UnitGroupFromId(2);
auto80F18A9F_u = UnitGroupCount(auto80F18A9F_g, c_unitCountAll);
for (;; auto80F18A9F_u -= 1) {
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/sc2epilogue02.sc2map — MapScript.galaxy:1168
libNtve_gf_ShowHideUnit(auto80F18A9F_var, false);
}
auto67A846B0_g = UnitGroupFromId(3);
auto67A846B0_u = UnitGroupCount(auto67A846B0_g, c_unitCountAll);
for (;; auto67A846B0_u -= 1) {
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/sc2epilogue02.sc2map — MapScript.galaxy:1175
libNtve_gf_ShowHideUnit(auto67A846B0_var, false);
}
autoE6D587F9_g = UnitGroupFromId(5);
autoE6D587F9_u = UnitGroupCount(autoE6D587F9_g, c_unitCountAll);
for (;; autoE6D587F9_u -= 1) {
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/sc2epilogue02.sc2map — MapScript.galaxy:1182
libNtve_gf_ShowHideUnit(autoE6D587F9_var, false);
}
autoF86921CE_g = UnitGroupFromId(6);
autoF86921CE_u = UnitGroupCount(autoF86921CE_g, c_unitCountAll);
for (;; autoF86921CE_u -= 1) {
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/sc2epilogue02.sc2map — MapScript.galaxy:2407
TriggerEnable(TriggerGetCurrent(), false);
auto42C3AF01_g = UnitGroupFromId(5);
auto42C3AF01_u = UnitGroupCount(auto42C3AF01_g, c_unitCountAll);
for (;; auto42C3AF01_u -= 1) {
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/sc2epilogue02.sc2map — MapScript.galaxy:2460
TriggerEnable(TriggerGetCurrent(), false);
auto2FB70C92_g = UnitGroupFromId(6);
auto2FB70C92_u = UnitGroupCount(auto2FB70C92_g, c_unitCountAll);
for (;; auto2FB70C92_u -= 1) {
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/sc2epilogue02.sc2map — MapScript.galaxy:2559
TriggerEnable(TriggerGetCurrent(), false);
autoF6B58830_g = UnitGroupFromId(2);
autoF6B58830_u = UnitGroupCount(autoF6B58830_g, c_unitCountAll);
for (;; autoF6B58830_u -= 1) {
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/sc2epilogue02.sc2map — MapScript.galaxy:2614
TriggerEnable(TriggerGetCurrent(), false);
auto850290AD_g = UnitGroupFromId(3);
auto850290AD_u = UnitGroupCount(auto850290AD_g, c_unitCountAll);
for (;; auto850290AD_u -= 1) {
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/sc2epilogue02.sc2map — MapScript.galaxy:7983
}
libNtve_gf_ShowHideUnit(UnitFromId(621), true);
auto33881E3C_g = UnitGroupFromId(1);
auto33881E3C_u = UnitGroupCount(auto33881E3C_g, c_unitCountAll);
for (;; auto33881E3C_u -= 1) {