# Number Of Units In Unit Group
Grammar — Number of type|Living/Dead units in g
Flags —Native
|Function
Returns the total number of units in the specified unit group.
# Arguments
unitgroup
— Unit Groupint
<preset::UnitCountType> — Type
Returns — int
native int UnitGroupCount(unitgroup inGroup, int inType);
# 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/liberty.sc2campaign — base.sc2data/TriggerLibs/Tactical/TactCampAI.galaxy:58
// Is there a threat in the area
threatGroup = UnitGroupFilterThreat(scanGroup, aiUnit, null, 0);
numPossibleThreats = UnitGroupCount(threatGroup, c_unitCountAll);
while (numPossibleThreats > 0) {
unitToCheck = UnitGroupUnit(threatGroup, numPossibleThreats);
campaigns/liberty.sc2campaign — base.sc2data/TriggerLibs/Tactical/TactCampAI.galaxy:85
barrageGroup = UnitGroup(null, c_playerAny, RegionCircle(loc, barrageRadius), null, 0);
barrageThreatGroup = UnitGroupFilterThreat(barrageGroup, aiUnit, null, 0);
numPossibleThreatsInBarrage = UnitGroupCount(barrageThreatGroup, c_unitCountAll);
while (numPossibleThreatsInBarrage > 0) {
unitToCheck = UnitGroupUnit(barrageThreatGroup, numPossibleThreatsInBarrage);
campaigns/liberty.sc2campaign — base.sc2data/TriggerLibs/Tactical/TactCampAI.galaxy:131
loc = OrderGetTargetPoint(curOrd);
loop = UnitGroupCount(scanGroup, c_unitCountAll);
while (loop > 0) {
unitToCheck = UnitGroupUnit(scanGroup, loop);
campaigns/liberty.sc2campaign — base.sc2data/TriggerLibs/Tactical/TactCampAI.galaxy:169
enemyGroup = UnitGroupFilterThreat(scanGroup, aiUnit, null, 0);
enemyGroup = UnitGroupFilterPlane(scanGroup, c_planeGround, 0);
if (UnitGroupCount(enemyGroup, c_unitCountAlive) <= 0) {
return;
}
campaigns/liberty.sc2campaign — base.sc2data/TriggerLibs/Tactical/TactCampAI.galaxy:351
}
scanCount = UnitGroupCount(scanGroup, c_unitCountAll);
while (scanCount > 0) {
unitToCheck = UnitGroupUnit(scanGroup, scanCount);
campaigns/liberty.sc2campaign — base.sc2data/TriggerLibs/Tactical/TactCampAI.galaxy:535
enemyGroup = AIGetFilterGroup(enemyFilter, enemyGroup);
if (UnitGroupCount(enemyGroup, c_unitCountAll) < c_hybridFAoEStunMin) {
return null;
}
campaigns/liberty.sc2campaign — base.sc2data/TriggerLibs/Tactical/TactCampAI.galaxy:724
enemyGroup = AIGetFilterGroup(enemyFilter, enemyGroup);
if (AIIsCampaign(player) && UnitGroupCount(enemyGroup, c_unitCountAll) < c_hybridCShockWaveMin) {
return null;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:633
auto49A2DDD7_g = UnitGroup(null, gv_p2_ENEMY, RegionEntireMap(), UnitFilter(0, 0, 0, (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
auto49A2DDD7_u = 1;
for ( ; auto49A2DDD7_u <= UnitGroupCount(auto49A2DDD7_g, c_unitCountAll) ; auto49A2DDD7_u += BoolToInt(lv_pickedUnit == UnitGroupUnit(auto49A2DDD7_g, auto49A2DDD7_u)) ) {
lv_pickedUnit = UnitGroupUnit(auto49A2DDD7_g, auto49A2DDD7_u);
UnitKill(lv_pickedUnit);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:642
auto6B9B76D8_g = UnitGroup(null, gv_p0_NEUTRAL, RegionEntireMap(), UnitFilter(0, 0, 0, (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
auto6B9B76D8_u = 1;
for ( ; auto6B9B76D8_u <= UnitGroupCount(auto6B9B76D8_g, c_unitCountAll) ; auto6B9B76D8_u += BoolToInt(lv_pickedUnit == UnitGroupUnit(auto6B9B76D8_g, auto6B9B76D8_u)) ) {
lv_pickedUnit = UnitGroupUnit(auto6B9B76D8_g, auto6B9B76D8_u);
auto10272E13_ae = gv_powerupTypeCount;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:2576
autoB7804980_g = gv_activeBackgroundUnits;
autoB7804980_u = 1;
for ( ; autoB7804980_u <= UnitGroupCount(autoB7804980_g, c_unitCountAll) ; autoB7804980_u += BoolToInt(lv_unit == UnitGroupUnit(autoB7804980_g, autoB7804980_u)) ) {
lv_unit = UnitGroupUnit(autoB7804980_g, autoB7804980_u);
UnitGroupRemove(gv_activeBackgroundUnits, lv_unit);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:2924
auto3F4C99E6_g = UnitGroup("SS_PowerupBomb", c_playerAny, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
auto3F4C99E6_u = 1;
for ( ; auto3F4C99E6_u <= UnitGroupCount(auto3F4C99E6_g, c_unitCountAll) ; auto3F4C99E6_u += BoolToInt(lv_u == UnitGroupUnit(auto3F4C99E6_g, auto3F4C99E6_u)) ) {
lv_u = UnitGroupUnit(auto3F4C99E6_g, auto3F4C99E6_u);
UnitRemove(lv_u);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:2930
auto1B6E7E41_g = UnitGroup("SS_PowerupHealth", c_playerAny, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
auto1B6E7E41_u = 1;
for ( ; auto1B6E7E41_u <= UnitGroupCount(auto1B6E7E41_g, c_unitCountAll) ; auto1B6E7E41_u += BoolToInt(lv_u == UnitGroupUnit(auto1B6E7E41_g, auto1B6E7E41_u)) ) {
lv_u = UnitGroupUnit(auto1B6E7E41_g, auto1B6E7E41_u);
UnitRemove(lv_u);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:2936
autoE3A7849B_g = UnitGroup("SS_PowerupSideMissiles", c_playerAny, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
autoE3A7849B_u = 1;
for ( ; autoE3A7849B_u <= UnitGroupCount(autoE3A7849B_g, c_unitCountAll) ; autoE3A7849B_u += BoolToInt(lv_u == UnitGroupUnit(autoE3A7849B_g, autoE3A7849B_u)) ) {
lv_u = UnitGroupUnit(autoE3A7849B_g, autoE3A7849B_u);
UnitRemove(lv_u);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:2942
auto5262DC05_g = UnitGroup("SS_PowerupStrongerMissiles", c_playerAny, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
auto5262DC05_u = 1;
for ( ; auto5262DC05_u <= UnitGroupCount(auto5262DC05_g, c_unitCountAll) ; auto5262DC05_u += BoolToInt(lv_u == UnitGroupUnit(auto5262DC05_g, auto5262DC05_u)) ) {
lv_u = UnitGroupUnit(auto5262DC05_g, auto5262DC05_u);
UnitRemove(lv_u);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:4075
auto22B9CD29_g = gv_endCinematicGroup;
auto22B9CD29_u = 1;
for ( ; auto22B9CD29_u <= UnitGroupCount(auto22B9CD29_g, c_unitCountAll) ; auto22B9CD29_u += BoolToInt(lv_indexUnit == UnitGroupUnit(auto22B9CD29_g, auto22B9CD29_u)) ) {
lv_indexUnit = UnitGroupUnit(auto22B9CD29_g, auto22B9CD29_u);
libNtve_gf_PauseUnit(lv_indexUnit, true);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:5134
lv_over = false;
while (true) {
if ((UnitGroupCount(UnitGroup("SS_SwarmGuardian", gv_p2_ENEMY, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) == 0)) {
lv_over = true;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:5155
else {
}
if ((UnitGroupCount(UnitGroup("SS_SwarmGuardian", gv_p2_ENEMY, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) == 0)) {
lv_over = true;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson01.sc2map/MapScript.galaxy:304
// Implementation
if ((UnitGroupCount(gv_civilianSpawners, c_unitCountAlive) >= 1)) {
if ((gv_vehicleCount < gv_vehicleLimit)) {
UnitCreate(1, "ColonistTransport", 0, gv_p4_COLONISTS, PointFromId(2906), 180.0);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson01.sc2map/MapScript.galaxy:364
// Automatic Variable Declarations
// Implementation
while (!((UnitGroupCount(UnitGroupFilterRegion(gv_colonistsOnTheMove, lp_region, 0), c_unitCountAlive) > 0))) {
Wait(0.1, c_timeGame);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson01.sc2map/MapScript.galaxy:372
// Automatic Variable Declarations
// Implementation
if ((UnitGroupCount(UnitGroup("Overlord", c_playerAny, RegionCircle(lp_param_SpoogeTarget, 3.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) == 0)) {
libNtve_gf_CreateUnitsAtPoint2(1, "Overlord", 0, gv_p5_ZERG_TACTICALPHASE, lp_param_Spawn);
UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("move", 0), lp_param_SpoogeTarget), c_orderQueueReplace);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson01.sc2map/MapScript.galaxy:403
// Implementation
autoC43E849B_g = lp_units;
autoC43E849B_u = UnitGroupCount(autoC43E849B_g, c_unitCountAll);
for (;; autoC43E849B_u -= 1) {
lv_u = UnitGroupUnitFromEnd(autoC43E849B_g, autoC43E849B_u);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson01.sc2map/MapScript.galaxy:449
libCamp_gf_CreateDropPod(libCamp_ge_DropPodRace_Zerg, RegionRandomPoint(RegionCircle(lp_target, 1.0)), lv_unitGroup, true);
auto142C38A1_g = lv_unitGroup;
auto142C38A1_u = UnitGroupCount(auto142C38A1_g, c_unitCountAll);
for (;; auto142C38A1_u -= 1) {
auto142C38A1_var = UnitGroupUnitFromEnd(auto142C38A1_g, auto142C38A1_u);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson01.sc2map/MapScript.galaxy:646
libNtve_gf_PauseUnit(UnitFromId(3245), true);
}
gv_bonusObjectiveCollectChrysalisNeeded = UnitGroupCount(UnitGroup("ChrysalisEgg", c_playerAny, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive);
gv_initialMarineCount = UnitGroupCount(UnitGroup("Marine", gv_p4_COLONISTS, RegionEntireMap(), UnitFilter(0, 0, 0, (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive);
libNtve_gf_PauseUnit(UnitFromId(96), true);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson01.sc2map/MapScript.galaxy:647
}
gv_bonusObjectiveCollectChrysalisNeeded = UnitGroupCount(UnitGroup("ChrysalisEgg", c_playerAny, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive);
gv_initialMarineCount = UnitGroupCount(UnitGroup("Marine", gv_p4_COLONISTS, RegionEntireMap(), UnitFilter(0, 0, 0, (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive);
libNtve_gf_PauseUnit(UnitFromId(96), true);
autoE0D555BB_g = UnitGroup("Hut", gv_p4_COLONISTS, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson01.sc2map/MapScript.galaxy:650
libNtve_gf_PauseUnit(UnitFromId(96), true);
autoE0D555BB_g = UnitGroup("Hut", gv_p4_COLONISTS, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
autoE0D555BB_u = UnitGroupCount(autoE0D555BB_g, c_unitCountAll);
for (;; autoE0D555BB_u -= 1) {
autoE0D555BB_var = UnitGroupUnitFromEnd(autoE0D555BB_g, autoE0D555BB_u);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson01.sc2map/MapScript.galaxy:657
}
autoE1052B09_g = UnitGroup(null, gv_p6_ZERG_NOAIPREPLACED, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
autoE1052B09_u = UnitGroupCount(autoE1052B09_g, c_unitCountAll);
for (;; autoE1052B09_u -= 1) {
autoE1052B09_var = UnitGroupUnitFromEnd(autoE1052B09_g, autoE1052B09_u);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson01.sc2map/MapScript.galaxy:664
}
autoB1ABC5AB_g = UnitGroup(null, gv_p6_ZERG_NOAIPREPLACED, RegionFromId(17), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
autoB1ABC5AB_u = UnitGroupCount(autoB1ABC5AB_g, c_unitCountAll);
for (;; autoB1ABC5AB_u -= 1) {
autoB1ABC5AB_var = UnitGroupUnitFromEnd(autoB1ABC5AB_g, autoB1ABC5AB_u);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson02.sc2map/MapScript.galaxy:438
// Automatic Variable Declarations
// Implementation
if (((UnitGroupCount(UnitGroup("CommandCenter", gv_pLAYER_01_USER, RegionFromId(49), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1) || (UnitGroupCount(UnitGroup("CommandCenterFlying", gv_pLAYER_01_USER, RegionFromId(49), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1) || (UnitGroupCount(UnitGroup("OrbitalCommand", gv_pLAYER_01_USER, RegionFromId(49), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1) || (UnitGroupCount(UnitGroup("OrbitalCommandFlying", gv_pLAYER_01_USER, RegionFromId(49), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1) || (UnitGroupCount(UnitGroup("PlanetaryFortress", gv_pLAYER_01_USER, RegionFromId(49), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1) || (UnitGroupCount(UnitGroup("AutomatedRefinery", gv_pLAYER_01_USER, RegionFromId(49), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1) || (UnitGroupCount(UnitGroup("Refinery", gv_pLAYER_01_USER, RegionFromId(49), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1))) {
AIAttackWaveAddWaypoint(gv_pLAYER_03_INFESTED_REFUGEES, PointFromId(859), false);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson02.sc2map/MapScript.galaxy:438
// Automatic Variable Declarations
// Implementation
if (((UnitGroupCount(UnitGroup("CommandCenter", gv_pLAYER_01_USER, RegionFromId(49), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1) || (UnitGroupCount(UnitGroup("CommandCenterFlying", gv_pLAYER_01_USER, RegionFromId(49), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1) || (UnitGroupCount(UnitGroup("OrbitalCommand", gv_pLAYER_01_USER, RegionFromId(49), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1) || (UnitGroupCount(UnitGroup("OrbitalCommandFlying", gv_pLAYER_01_USER, RegionFromId(49), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1) || (UnitGroupCount(UnitGroup("PlanetaryFortress", gv_pLAYER_01_USER, RegionFromId(49), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1) || (UnitGroupCount(UnitGroup("AutomatedRefinery", gv_pLAYER_01_USER, RegionFromId(49), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1) || (UnitGroupCount(UnitGroup("Refinery", gv_pLAYER_01_USER, RegionFromId(49), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1))) {
AIAttackWaveAddWaypoint(gv_pLAYER_03_INFESTED_REFUGEES, PointFromId(859), false);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson02.sc2map/MapScript.galaxy:438
// Automatic Variable Declarations
// Implementation
if (((UnitGroupCount(UnitGroup("CommandCenter", gv_pLAYER_01_USER, RegionFromId(49), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1) || (UnitGroupCount(UnitGroup("CommandCenterFlying", gv_pLAYER_01_USER, RegionFromId(49), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1) || (UnitGroupCount(UnitGroup("OrbitalCommand", gv_pLAYER_01_USER, RegionFromId(49), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1) || (UnitGroupCount(UnitGroup("OrbitalCommandFlying", gv_pLAYER_01_USER, RegionFromId(49), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1) || (UnitGroupCount(UnitGroup("PlanetaryFortress", gv_pLAYER_01_USER, RegionFromId(49), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1) || (UnitGroupCount(UnitGroup("AutomatedRefinery", gv_pLAYER_01_USER, RegionFromId(49), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1) || (UnitGroupCount(UnitGroup("Refinery", gv_pLAYER_01_USER, RegionFromId(49), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1))) {
AIAttackWaveAddWaypoint(gv_pLAYER_03_INFESTED_REFUGEES, PointFromId(859), false);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson02.sc2map/MapScript.galaxy:438
// Automatic Variable Declarations
// Implementation
if (((UnitGroupCount(UnitGroup("CommandCenter", gv_pLAYER_01_USER, RegionFromId(49), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1) || (UnitGroupCount(UnitGroup("CommandCenterFlying", gv_pLAYER_01_USER, RegionFromId(49), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1) || (UnitGroupCount(UnitGroup("OrbitalCommand", gv_pLAYER_01_USER, RegionFromId(49), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1) || (UnitGroupCount(UnitGroup("OrbitalCommandFlying", gv_pLAYER_01_USER, RegionFromId(49), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1) || (UnitGroupCount(UnitGroup("PlanetaryFortress", gv_pLAYER_01_USER, RegionFromId(49), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1) || (UnitGroupCount(UnitGroup("AutomatedRefinery", gv_pLAYER_01_USER, RegionFromId(49), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1) || (UnitGroupCount(UnitGroup("Refinery", gv_pLAYER_01_USER, RegionFromId(49), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1))) {
AIAttackWaveAddWaypoint(gv_pLAYER_03_INFESTED_REFUGEES, PointFromId(859), false);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson02.sc2map/MapScript.galaxy:438
// Automatic Variable Declarations
// Implementation
if (((UnitGroupCount(UnitGroup("CommandCenter", gv_pLAYER_01_USER, RegionFromId(49), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1) || (UnitGroupCount(UnitGroup("CommandCenterFlying", gv_pLAYER_01_USER, RegionFromId(49), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1) || (UnitGroupCount(UnitGroup("OrbitalCommand", gv_pLAYER_01_USER, RegionFromId(49), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1) || (UnitGroupCount(UnitGroup("OrbitalCommandFlying", gv_pLAYER_01_USER, RegionFromId(49), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1) || (UnitGroupCount(UnitGroup("PlanetaryFortress", gv_pLAYER_01_USER, RegionFromId(49), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1) || (UnitGroupCount(UnitGroup("AutomatedRefinery", gv_pLAYER_01_USER, RegionFromId(49), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1) || (UnitGroupCount(UnitGroup("Refinery", gv_pLAYER_01_USER, RegionFromId(49), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1))) {
AIAttackWaveAddWaypoint(gv_pLAYER_03_INFESTED_REFUGEES, PointFromId(859), false);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson02.sc2map/MapScript.galaxy:438
// Automatic Variable Declarations
// Implementation
if (((UnitGroupCount(UnitGroup("CommandCenter", gv_pLAYER_01_USER, RegionFromId(49), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1) || (UnitGroupCount(UnitGroup("CommandCenterFlying", gv_pLAYER_01_USER, RegionFromId(49), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1) || (UnitGroupCount(UnitGroup("OrbitalCommand", gv_pLAYER_01_USER, RegionFromId(49), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1) || (UnitGroupCount(UnitGroup("OrbitalCommandFlying", gv_pLAYER_01_USER, RegionFromId(49), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1) || (UnitGroupCount(UnitGroup("PlanetaryFortress", gv_pLAYER_01_USER, RegionFromId(49), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1) || (UnitGroupCount(UnitGroup("AutomatedRefinery", gv_pLAYER_01_USER, RegionFromId(49), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1) || (UnitGroupCount(UnitGroup("Refinery", gv_pLAYER_01_USER, RegionFromId(49), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1))) {
AIAttackWaveAddWaypoint(gv_pLAYER_03_INFESTED_REFUGEES, PointFromId(859), false);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson02.sc2map/MapScript.galaxy:438
// Automatic Variable Declarations
// Implementation
if (((UnitGroupCount(UnitGroup("CommandCenter", gv_pLAYER_01_USER, RegionFromId(49), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1) || (UnitGroupCount(UnitGroup("CommandCenterFlying", gv_pLAYER_01_USER, RegionFromId(49), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1) || (UnitGroupCount(UnitGroup("OrbitalCommand", gv_pLAYER_01_USER, RegionFromId(49), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1) || (UnitGroupCount(UnitGroup("OrbitalCommandFlying", gv_pLAYER_01_USER, RegionFromId(49), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1) || (UnitGroupCount(UnitGroup("PlanetaryFortress", gv_pLAYER_01_USER, RegionFromId(49), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1) || (UnitGroupCount(UnitGroup("AutomatedRefinery", gv_pLAYER_01_USER, RegionFromId(49), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1) || (UnitGroupCount(UnitGroup("Refinery", gv_pLAYER_01_USER, RegionFromId(49), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1))) {
AIAttackWaveAddWaypoint(gv_pLAYER_03_INFESTED_REFUGEES, PointFromId(859), false);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson02.sc2map/MapScript.galaxy:461
UnitGroupIssueOrder(lv_lastGroup, Order(AbilityCommand("BurrowInfestedTerranCampaignUp", 0)), c_orderQueueReplace);
auto1B9E687D_g = UnitGroup("InfestedCivilian", gv_pLAYER_04_INFESTEDREFUGEES, RegionFromId(10), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
auto1B9E687D_u = UnitGroupCount(auto1B9E687D_g, c_unitCountAll);
for (;; auto1B9E687D_u -= 1) {
auto1B9E687D_var = UnitGroupUnitFromEnd(auto1B9E687D_g, auto1B9E687D_u);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson02.sc2map/MapScript.galaxy:593
libNtve_gf_SendActorMessageToGameRegion(RegionEntireMap(), "Signal LightPowerDown");
auto6A6C64E5_g = UnitGroup(null, gv_pLAYER_03_INFESTED_REFUGEES, RegionEntireMap(), UnitFilter((1 << c_targetFilterStructure), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
auto6A6C64E5_u = UnitGroupCount(auto6A6C64E5_g, c_unitCountAll);
for (;; auto6A6C64E5_u -= 1) {
auto6A6C64E5_var = UnitGroupUnitFromEnd(auto6A6C64E5_g, auto6A6C64E5_u);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson02.sc2map/MapScript.galaxy:625
UnitSetPropertyFixed(UnitFromId(18), c_unitPropLifeMax, 100.0);
auto97A1CCEC_g = UnitGroup("InfestorBurrowed", gv_pLAYER_06_INFESTORS, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
auto97A1CCEC_u = UnitGroupCount(auto97A1CCEC_g, c_unitCountAll);
for (;; auto97A1CCEC_u -= 1) {
auto97A1CCEC_var = UnitGroupUnitFromEnd(auto97A1CCEC_g, auto97A1CCEC_u);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03a.sc2map/MapScript.galaxy:303
// Implementation
while (true) {
lv_fleetSize = UnitGroupCount(lp_fLEET, c_unitCountAlive);
if ((UnitGroupCount(lp_fLEET, c_unitCountAlive) > 0) && (UnitGroupCount(UnitGroupFilterRegion(lp_fLEET, lp_tARGET, 0), c_unitCountAlive) != lv_fleetSize)) {
UnitGroupIssueOrder(lp_fLEET, OrderTargetingPoint(AbilityCommand("move", 0), RegionGetCenter(lp_tARGET)), c_orderQueueAddToEnd);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03a.sc2map/MapScript.galaxy:304
while (true) {
lv_fleetSize = UnitGroupCount(lp_fLEET, c_unitCountAlive);
if ((UnitGroupCount(lp_fLEET, c_unitCountAlive) > 0) && (UnitGroupCount(UnitGroupFilterRegion(lp_fLEET, lp_tARGET, 0), c_unitCountAlive) != lv_fleetSize)) {
UnitGroupIssueOrder(lp_fLEET, OrderTargetingPoint(AbilityCommand("move", 0), RegionGetCenter(lp_tARGET)), c_orderQueueAddToEnd);
Wait(30.0, c_timeGame);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03a.sc2map/MapScript.galaxy:304
while (true) {
lv_fleetSize = UnitGroupCount(lp_fLEET, c_unitCountAlive);
if ((UnitGroupCount(lp_fLEET, c_unitCountAlive) > 0) && (UnitGroupCount(UnitGroupFilterRegion(lp_fLEET, lp_tARGET, 0), c_unitCountAlive) != lv_fleetSize)) {
UnitGroupIssueOrder(lp_fLEET, OrderTargetingPoint(AbilityCommand("move", 0), RegionGetCenter(lp_tARGET)), c_orderQueueAddToEnd);
Wait(30.0, c_timeGame);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03a.sc2map/MapScript.galaxy:388
auto6E2B3EC3_n = lp_count;
for (auto6E2B3EC3_i = 1; auto6E2B3EC3_i <= auto6E2B3EC3_n; auto6E2B3EC3_i += 1) {
if ((gv_currentWaveSources != null) && (UnitGroupCount(gv_currentWaveSources, c_unitCountAlive) > 0)) {
UnitIssueOrder(gv_superWarpGateP02, OrderTargetingPoint(lp_trainCmd, UnitGetPosition(UnitGroupRandomUnit(gv_currentWaveSources, c_unitCountAlive))), c_orderQueueReplace);
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03a.sc2map/MapScript.galaxy:401
// Implementation
if ((UnitGroupCount(gv_currentWaveUnits, c_unitCountAlive) <= 0)) {
return ;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03a.sc2map/MapScript.galaxy:630
libNtve_gf_ShareVisionofUnit(UnitFromId(2632), true, gv_pLAYER01_USER);
auto81633956_g = UnitGroup("InfestedCivilian", gv_pLAYER03_COLONIST, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
auto81633956_u = UnitGroupCount(auto81633956_g, c_unitCountAll);
for (;; auto81633956_u -= 1) {
auto81633956_var = UnitGroupUnitFromEnd(auto81633956_g, auto81633956_u);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03a.sc2map/MapScript.galaxy:637
}
auto542B3ECA_g = UnitGroup("ColonistShip", gv_pLAYER03_COLONIST, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
auto542B3ECA_u = UnitGroupCount(auto542B3ECA_g, c_unitCountAll);
for (;; auto542B3ECA_u -= 1) {
auto542B3ECA_var = UnitGroupUnitFromEnd(auto542B3ECA_g, auto542B3ECA_u);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03a.sc2map/MapScript.galaxy:644
}
auto28CECA96_g = UnitGroup("Biodome", gv_pLAYER05_COLONISTSTRUCTURES, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
auto28CECA96_u = UnitGroupCount(auto28CECA96_g, c_unitCountAll);
for (;; auto28CECA96_u -= 1) {
auto28CECA96_var = UnitGroupUnitFromEnd(auto28CECA96_g, auto28CECA96_u);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03a.sc2map/MapScript.galaxy:651
}
autoD79C4196_g = UnitGroup("BiodomeHalfBuilt", gv_pLAYER05_COLONISTSTRUCTURES, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
autoD79C4196_u = UnitGroupCount(autoD79C4196_g, c_unitCountAll);
for (;; autoD79C4196_u -= 1) {
autoD79C4196_var = UnitGroupUnitFromEnd(autoD79C4196_g, autoD79C4196_u);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03a.sc2map/MapScript.galaxy:658
}
autoC2C6AB81_g = UnitGroup("Hut", gv_pLAYER05_COLONISTSTRUCTURES, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
autoC2C6AB81_u = UnitGroupCount(autoC2C6AB81_g, c_unitCountAll);
for (;; autoC2C6AB81_u -= 1) {
autoC2C6AB81_var = UnitGroupUnitFromEnd(autoC2C6AB81_g, autoC2C6AB81_u);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03b.sc2map/MapScript.galaxy:293
// Implementation
auto4EE00797_g = UnitGroup(lp_type, lp_player, lp_region, UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
auto4EE00797_u = UnitGroupCount(auto4EE00797_g, c_unitCountAll);
for (;; auto4EE00797_u -= 1) {
lv_u = UnitGroupUnitFromEnd(auto4EE00797_g, auto4EE00797_u);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03b.sc2map/MapScript.galaxy:372
gv_infestationOverseers[lp_colonyIndex] = UnitGroupEmpty();
auto009D0608_g = UnitGroup(null, gv_p07_ZERG_INFESTED, lp_area, UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
auto009D0608_u = UnitGroupCount(auto009D0608_g, c_unitCountAll);
for (;; auto009D0608_u -= 1) {
lv_u = UnitGroupUnitFromEnd(auto009D0608_g, auto009D0608_u);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03b.sc2map/MapScript.galaxy:383
CreepModify(RegionGetCenter(lp_area), 10.0, false, false);
autoED4A8D80_g = UnitGroup(null, gv_p07_ZERG_INFESTED, lp_area, UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
autoED4A8D80_u = UnitGroupCount(autoED4A8D80_g, c_unitCountAll);
for (;; autoED4A8D80_u -= 1) {
lv_u = UnitGroupUnitFromEnd(autoED4A8D80_g, autoED4A8D80_u);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03b.sc2map/MapScript.galaxy:430
// Automatic Variable Declarations
// Implementation
if ((UnitGroupCount(UnitGroup(null, gv_p02_ZERG_EAST, RegionFromId(15), UnitFilter((1 << c_targetFilterPreventDefeat), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) == 0) && (UnitGroupCount(UnitGroup(null, gv_p04_ZERG_NORTH, RegionFromId(31), UnitFilter((1 << c_targetFilterPreventDefeat), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) == 0) && (UnitGroupCount(UnitGroup(null, gv_p08_ZERG_SOUTH, RegionFromId(32), UnitFilter((1 << c_targetFilterPreventDefeat), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) == 0)) {
return ;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03b.sc2map/MapScript.galaxy:430
// Automatic Variable Declarations
// Implementation
if ((UnitGroupCount(UnitGroup(null, gv_p02_ZERG_EAST, RegionFromId(15), UnitFilter((1 << c_targetFilterPreventDefeat), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) == 0) && (UnitGroupCount(UnitGroup(null, gv_p04_ZERG_NORTH, RegionFromId(31), UnitFilter((1 << c_targetFilterPreventDefeat), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) == 0) && (UnitGroupCount(UnitGroup(null, gv_p08_ZERG_SOUTH, RegionFromId(32), UnitFilter((1 << c_targetFilterPreventDefeat), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) == 0)) {
return ;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03b.sc2map/MapScript.galaxy:430
// Automatic Variable Declarations
// Implementation
if ((UnitGroupCount(UnitGroup(null, gv_p02_ZERG_EAST, RegionFromId(15), UnitFilter((1 << c_targetFilterPreventDefeat), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) == 0) && (UnitGroupCount(UnitGroup(null, gv_p04_ZERG_NORTH, RegionFromId(31), UnitFilter((1 << c_targetFilterPreventDefeat), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) == 0) && (UnitGroupCount(UnitGroup(null, gv_p08_ZERG_SOUTH, RegionFromId(32), UnitFilter((1 << c_targetFilterPreventDefeat), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) == 0)) {
return ;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03b.sc2map/MapScript.galaxy:563
auto6DAA3909_g = gv_infestationOverlords[lp_colonyIndex];
auto6DAA3909_u = UnitGroupCount(auto6DAA3909_g, c_unitCountAll);
for (;; auto6DAA3909_u -= 1) {
lv_overlord = UnitGroupUnitFromEnd(auto6DAA3909_g, auto6DAA3909_u);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03b.sc2map/MapScript.galaxy:1036
UnitSetPropertyFixed(UnitFromId(163), c_unitPropEnergy, 50.0);
auto662D39EC_g = UnitGroup("CarrionBird", c_playerAny, RegionPlayableMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
auto662D39EC_u = UnitGroupCount(auto662D39EC_g, c_unitCountAll);
for (;; auto662D39EC_u -= 1) {
auto662D39EC_var = UnitGroupUnitFromEnd(auto662D39EC_g, auto662D39EC_u);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03b.sc2map/MapScript.galaxy:1043
}
auto43ECEBF9_g = UnitGroup(null, c_playerAny, RegionFromId(28), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
auto43ECEBF9_u = UnitGroupCount(auto43ECEBF9_g, c_unitCountAll);
for (;; auto43ECEBF9_u -= 1) {
auto43ECEBF9_var = UnitGroupUnitFromEnd(auto43ECEBF9_g, auto43ECEBF9_u);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thanson03b.sc2map/MapScript.galaxy:1050
}
auto828DBE83_g = UnitGroup(null, c_playerAny, RegionFromId(53), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
auto828DBE83_u = UnitGroupCount(auto828DBE83_g, c_unitCountAll);
for (;; auto828DBE83_u -= 1) {
auto828DBE83_var = UnitGroupUnitFromEnd(auto828DBE83_g, auto828DBE83_u);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner01.sc2map/MapScript.galaxy:740
libNtve_gf_PreloadUnit("TarsonisEngineFast", false);
gv_defilerSkeletonsNeeded = UnitGroupCount(UnitGroup("DefilerBoneSample", gv_pLAYER_07_DEFILERBONESAMPLE, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive);
TriggerExecute(gt_TrainPathInitialization, true, false);
TriggerExecute(gt_TrainInitialization, true, false);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner01.sc2map/MapScript.galaxy:753
gv_tunnelOrder[9] = ge_PRESET_Tunnel_Bottom;
auto582274C1_g = UnitGroup("Medic", c_playerAny, RegionEntireMap(), UnitFilter(0, 0, 0, (1 << (c_targetFilterDead - 32))), 0);
auto582274C1_u = UnitGroupCount(auto582274C1_g, c_unitCountAll);
for (;; auto582274C1_u -= 1) {
auto582274C1_var = UnitGroupUnitFromEnd(auto582274C1_g, auto582274C1_u);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner01.sc2map/MapScript.galaxy:760
}
auto847F12A2_g = UnitGroup("Diamondback", gv_pLAYER_05_ABANDONEDVEHICLES, RegionEntireMap(), UnitFilter(0, 0, 0, (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
auto847F12A2_u = UnitGroupCount(auto847F12A2_g, c_unitCountAll);
for (;; auto847F12A2_u -= 1) {
auto847F12A2_var = UnitGroupUnitFromEnd(auto847F12A2_g, auto847F12A2_u);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner01.sc2map/MapScript.galaxy:767
}
auto33545EAB_g = UnitGroup("Diamondback", gv_pLAYER_05_ABANDONEDVEHICLES, RegionEntireMap(), UnitFilter(0, 0, 0, (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
auto33545EAB_u = UnitGroupCount(auto33545EAB_g, c_unitCountAll);
for (;; auto33545EAB_u -= 1) {
auto33545EAB_var = UnitGroupUnitFromEnd(auto33545EAB_g, auto33545EAB_u);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner01.sc2map/MapScript.galaxy:774
}
autoC99230F0_g = UnitGroup("AutoTurret", c_playerAny, RegionEntireMap(), UnitFilter(0, 0, 0, (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
autoC99230F0_u = UnitGroupCount(autoC99230F0_g, c_unitCountAll);
for (;; autoC99230F0_u -= 1) {
autoC99230F0_var = UnitGroupUnitFromEnd(autoC99230F0_g, autoC99230F0_u);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner01.sc2map/MapScript.galaxy:781
}
auto79C99746_g = UnitGroup("DefilerBoneSample", c_playerAny, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
auto79C99746_u = UnitGroupCount(auto79C99746_g, c_unitCountAll);
for (;; auto79C99746_u -= 1) {
auto79C99746_var = UnitGroupUnitFromEnd(auto79C99746_g, auto79C99746_u);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner01.sc2map/MapScript.galaxy:945
auto4E88CFC0_g = UnitGroup("DefilerBoneSample", gv_pLAYER_07_DEFILERBONESAMPLE, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
auto4E88CFC0_u = UnitGroupCount(auto4E88CFC0_g, c_unitCountAll);
for (;; auto4E88CFC0_u -= 1) {
auto4E88CFC0_var = UnitGroupUnitFromEnd(auto4E88CFC0_g, auto4E88CFC0_u);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner01.sc2map/MapScript.galaxy:2134
auto005D2B42_g = UnitGroup(null, gv_pLAYER_06_TRAIN, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
auto005D2B42_u = UnitGroupCount(auto005D2B42_g, c_unitCountAll);
for (;; auto005D2B42_u -= 1) {
auto005D2B42_var = UnitGroupUnitFromEnd(auto005D2B42_g, auto005D2B42_u);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner01.sc2map/MapScript.galaxy:2144
}
auto499A4BF2_g = lv_trainCars;
auto499A4BF2_u = UnitGroupCount(auto499A4BF2_g, c_unitCountAll);
for (;; auto499A4BF2_u -= 1) {
auto499A4BF2_var = UnitGroupUnitFromEnd(auto499A4BF2_g, auto499A4BF2_u);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner01.sc2map/MapScript.galaxy:2846
autoF18F5B4B_val = gv_trainStations[lv_i].lv_state;
if (autoF18F5B4B_val == ge_PRESET_TrainStationState_Inactive) {
if (((UnitGroupCount(UnitGroup("TarsonisEngine", gv_pLAYER_06_TRAIN, RegionCircle(gv_trainStations[lv_i].lv_position, 11.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) > 0) || (UnitGroupCount(UnitGroup("TarsonisEngineFast", gv_pLAYER_06_TRAIN, RegionCircle(gv_trainStations[lv_i].lv_position, 11.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) > 0) || (UnitGroupCount(UnitGroup("FreightCar", gv_pLAYER_06_TRAIN, RegionCircle(gv_trainStations[lv_i].lv_position, 11.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) > 0) || (UnitGroupCount(UnitGroup("Caboose", gv_pLAYER_06_TRAIN, RegionCircle(gv_trainStations[lv_i].lv_position, 11.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) > 0))) {
gv_currentTrainStationGlobal = lv_i;
TriggerExecute(gt_ActivateStation, true, false);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner02.sc2map/MapScript.galaxy:278
// Implementation
auto8FFA0729_g = UnitGroup(null, lp_player, RegionCircle(lp_scrapPosition, lp_distance), UnitFilter(0, 0, (1 << c_targetFilterAir) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
auto8FFA0729_u = UnitGroupCount(auto8FFA0729_g, c_unitCountAll);
for (;; auto8FFA0729_u -= 1) {
lv_u = UnitGroupUnitFromEnd(auto8FFA0729_g, auto8FFA0729_u);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner02.sc2map/MapScript.galaxy:335
// Implementation
Wait(0.2, c_timeGame);
if ((UnitGroupCount(UnitGroup(lp_salvageType, gv_p05_SCRAP, lp_salvageRegion, UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) == 0)) {
libNtve_gf_CreateUnitsWithDefaultFacing(1, "ElevatorBlocker", c_unitCreateIgnorePlacement, 0, RegionGetCenter(lp_salvageRegion));
lv_elevatorBlocker = UnitLastCreated();
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner02.sc2map/MapScript.galaxy:569
UnitCargoCreate(UnitFromId(1056), "Marine", 5);
auto4801D79A_g = UnitGroup("Bunker", gv_p02_ORLAN_ENEMY, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
auto4801D79A_u = UnitGroupCount(auto4801D79A_g, c_unitCountAll);
for (;; auto4801D79A_u -= 1) {
auto4801D79A_var = UnitGroupUnitFromEnd(auto4801D79A_g, auto4801D79A_u);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner02.sc2map/MapScript.galaxy:576
}
auto8FA23EE3_g = UnitGroup("Bunker", gv_p03_MIRA_HAN, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
auto8FA23EE3_u = UnitGroupCount(auto8FA23EE3_g, c_unitCountAll);
for (;; auto8FA23EE3_u -= 1) {
auto8FA23EE3_var = UnitGroupUnitFromEnd(auto8FA23EE3_g, auto8FA23EE3_u);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner02.sc2map/MapScript.galaxy:583
}
auto721FDF2B_g = UnitGroup("AutoTurret", c_playerAny, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
auto721FDF2B_u = UnitGroupCount(auto721FDF2B_g, c_unitCountAll);
for (;; auto721FDF2B_u -= 1) {
auto721FDF2B_var = UnitGroupUnitFromEnd(auto721FDF2B_g, auto721FDF2B_u);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner02.sc2map/MapScript.galaxy:590
}
auto2A22AC2E_g = UnitGroup("ProtossRelic", gv_p09_PROTOSS_RELICS, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
auto2A22AC2E_u = UnitGroupCount(auto2A22AC2E_g, c_unitCountAll);
for (;; auto2A22AC2E_u -= 1) {
auto2A22AC2E_var = UnitGroupUnitFromEnd(auto2A22AC2E_g, auto2A22AC2E_u);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner02.sc2map/MapScript.galaxy:613
gv_initialElevatorBlockers[8] = UnitLastCreated();
autoD10EC4F1_g = UnitGroup("Raven", gv_p02_ORLAN_ENEMY, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
autoD10EC4F1_u = UnitGroupCount(autoD10EC4F1_g, c_unitCountAll);
for (;; autoD10EC4F1_u -= 1) {
autoD10EC4F1_var = UnitGroupUnitFromEnd(autoD10EC4F1_g, autoD10EC4F1_u);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner02.sc2map/MapScript.galaxy:620
}
autoA8826E3A_g = UnitGroup("ProtossRelic", gv_p09_PROTOSS_RELICS, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
autoA8826E3A_u = UnitGroupCount(autoA8826E3A_g, c_unitCountAll);
for (;; autoA8826E3A_u -= 1) {
autoA8826E3A_var = UnitGroupUnitFromEnd(autoA8826E3A_g, autoA8826E3A_u);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner02.sc2map/MapScript.galaxy:643
}
autoB091E22D_g = UnitGroup(null, gv_p05_SCRAP, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
autoB091E22D_u = UnitGroupCount(autoB091E22D_g, c_unitCountAll);
for (;; autoB091E22D_u -= 1) {
autoB091E22D_var = UnitGroupUnitFromEnd(autoB091E22D_g, autoB091E22D_u);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner02.sc2map/MapScript.galaxy:661
}
auto020B1BA4_g = UnitGroup("MineralCrystal", gv_p05_SCRAP, RegionFromId(51), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
auto020B1BA4_u = UnitGroupCount(auto020B1BA4_g, c_unitCountAll);
for (;; auto020B1BA4_u -= 1) {
auto020B1BA4_var = UnitGroupUnitFromEnd(auto020B1BA4_g, auto020B1BA4_u);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner03.sc2map/MapScript.galaxy:275
// Automatic Variable Declarations
// Implementation
if (((UnitGroupCount(UnitGroup("CommandCenter", gv_p01_USER, RegionFromId(31), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1) || (UnitGroupCount(UnitGroup("CommandCenterFlying", gv_p01_USER, RegionFromId(31), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1) || (UnitGroupCount(UnitGroup("OrbitalCommand", gv_p01_USER, RegionFromId(31), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1) || (UnitGroupCount(UnitGroup("OrbitalCommandFlying", gv_p01_USER, RegionFromId(31), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1) || (UnitGroupCount(UnitGroup("PlanetaryFortress", gv_p01_USER, RegionFromId(31), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1))) {
if ((lp_p == gv_p05_DOMINION_FACTORY)) {
AIAttackWaveAddWaypoint(lp_p, PointFromId(211), false);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner03.sc2map/MapScript.galaxy:275
// Automatic Variable Declarations
// Implementation
if (((UnitGroupCount(UnitGroup("CommandCenter", gv_p01_USER, RegionFromId(31), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1) || (UnitGroupCount(UnitGroup("CommandCenterFlying", gv_p01_USER, RegionFromId(31), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1) || (UnitGroupCount(UnitGroup("OrbitalCommand", gv_p01_USER, RegionFromId(31), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1) || (UnitGroupCount(UnitGroup("OrbitalCommandFlying", gv_p01_USER, RegionFromId(31), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1) || (UnitGroupCount(UnitGroup("PlanetaryFortress", gv_p01_USER, RegionFromId(31), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1))) {
if ((lp_p == gv_p05_DOMINION_FACTORY)) {
AIAttackWaveAddWaypoint(lp_p, PointFromId(211), false);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner03.sc2map/MapScript.galaxy:275
// Automatic Variable Declarations
// Implementation
if (((UnitGroupCount(UnitGroup("CommandCenter", gv_p01_USER, RegionFromId(31), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1) || (UnitGroupCount(UnitGroup("CommandCenterFlying", gv_p01_USER, RegionFromId(31), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1) || (UnitGroupCount(UnitGroup("OrbitalCommand", gv_p01_USER, RegionFromId(31), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1) || (UnitGroupCount(UnitGroup("OrbitalCommandFlying", gv_p01_USER, RegionFromId(31), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1) || (UnitGroupCount(UnitGroup("PlanetaryFortress", gv_p01_USER, RegionFromId(31), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1))) {
if ((lp_p == gv_p05_DOMINION_FACTORY)) {
AIAttackWaveAddWaypoint(lp_p, PointFromId(211), false);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner03.sc2map/MapScript.galaxy:275
// Automatic Variable Declarations
// Implementation
if (((UnitGroupCount(UnitGroup("CommandCenter", gv_p01_USER, RegionFromId(31), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1) || (UnitGroupCount(UnitGroup("CommandCenterFlying", gv_p01_USER, RegionFromId(31), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1) || (UnitGroupCount(UnitGroup("OrbitalCommand", gv_p01_USER, RegionFromId(31), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1) || (UnitGroupCount(UnitGroup("OrbitalCommandFlying", gv_p01_USER, RegionFromId(31), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1) || (UnitGroupCount(UnitGroup("PlanetaryFortress", gv_p01_USER, RegionFromId(31), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1))) {
if ((lp_p == gv_p05_DOMINION_FACTORY)) {
AIAttackWaveAddWaypoint(lp_p, PointFromId(211), false);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner03.sc2map/MapScript.galaxy:275
// Automatic Variable Declarations
// Implementation
if (((UnitGroupCount(UnitGroup("CommandCenter", gv_p01_USER, RegionFromId(31), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1) || (UnitGroupCount(UnitGroup("CommandCenterFlying", gv_p01_USER, RegionFromId(31), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1) || (UnitGroupCount(UnitGroup("OrbitalCommand", gv_p01_USER, RegionFromId(31), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1) || (UnitGroupCount(UnitGroup("OrbitalCommandFlying", gv_p01_USER, RegionFromId(31), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1) || (UnitGroupCount(UnitGroup("PlanetaryFortress", gv_p01_USER, RegionFromId(31), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1))) {
if ((lp_p == gv_p05_DOMINION_FACTORY)) {
AIAttackWaveAddWaypoint(lp_p, PointFromId(211), false);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner03.sc2map/MapScript.galaxy:431
autoD9E2A2C7_g = UnitGroup("DevourerTissueSampleTube", c_playerAny, RegionPlayableMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
autoD9E2A2C7_u = UnitGroupCount(autoD9E2A2C7_g, c_unitCountAll);
for (;; autoD9E2A2C7_u -= 1) {
autoD9E2A2C7_var = UnitGroupUnitFromEnd(autoD9E2A2C7_g, autoD9E2A2C7_u);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner03.sc2map/MapScript.galaxy:470
libNtve_gf_MakeUnitInvulnerable(UnitFromId(935), true);
autoA9B56296_g = UnitGroup("Medic", c_playerAny, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
autoA9B56296_u = UnitGroupCount(autoA9B56296_g, c_unitCountAll);
for (;; autoA9B56296_u -= 1) {
autoA9B56296_var = UnitGroupUnitFromEnd(autoA9B56296_g, autoA9B56296_u);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner03.sc2map/MapScript.galaxy:477
}
autoA69D9812_g = UnitGroup(null, gv_p03_DOMINION_WAREHOUSE, RegionFromId(9), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
autoA69D9812_u = UnitGroupCount(autoA69D9812_g, c_unitCountAll);
for (;; autoA69D9812_u -= 1) {
autoA69D9812_var = UnitGroupUnitFromEnd(autoA69D9812_g, autoA69D9812_u);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner03.sc2map/MapScript.galaxy:505
AISetUnitScriptControlled(UnitFromId(2242), false);
auto089A9E6A_g = UnitGroup(null, gv_p01_USER, RegionFromId(3), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32))), 0);
auto089A9E6A_u = UnitGroupCount(auto089A9E6A_g, c_unitCountAll);
for (;; auto089A9E6A_u -= 1) {
auto089A9E6A_var = UnitGroupUnitFromEnd(auto089A9E6A_g, auto089A9E6A_u);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner03.sc2map/MapScript.galaxy:752
libNtve_gf_GlobalCinematicSetting(true);
autoBA160EAB_g = UnitGroup(null, gv_p03_DOMINION_WAREHOUSE, RegionFromId(1), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
autoBA160EAB_u = UnitGroupCount(autoBA160EAB_g, c_unitCountAll);
for (;; autoBA160EAB_u -= 1) {
autoBA160EAB_var = UnitGroupUnitFromEnd(autoBA160EAB_g, autoBA160EAB_u);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner04.sc2map/MapScript.galaxy:329
UnitCargoCreate(lp_bunker, lp_type, lp_qty);
auto560015A7_g = UnitLastCreatedGroup();
auto560015A7_u = UnitGroupCount(auto560015A7_g, c_unitCountAll);
for (;; auto560015A7_u -= 1) {
lv_u = UnitGroupUnitFromEnd(auto560015A7_g, auto560015A7_u);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner04.sc2map/MapScript.galaxy:380
// Implementation
auto2F78EED7_g = lp_transports;
auto2F78EED7_u = UnitGroupCount(auto2F78EED7_g, c_unitCountAll);
for (;; auto2F78EED7_u -= 1) {
lv_u = UnitGroupUnitFromEnd(auto2F78EED7_g, auto2F78EED7_u);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner04.sc2map/MapScript.galaxy:470
// Implementation
lv_numberOfPlayerUnitsByCOP = UnitGroupCount(UnitGroup(null, gv_p01_USER, RegionCircle(UnitGetPosition(lp_unit), 2.0), UnitFilter(0, 0, (1 << c_targetFilterAir) | (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterInvulnerable - 32))), 0), c_unitCountAlive);
lv_realInterval = 1.0;
lv_realCurrent = (lv_realInterval * IntToFixed(gv_transmissionProgress[lp_index]));
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner04.sc2map/MapScript.galaxy:503
lv_realCurrent = (lv_realCurrent + lv_realInterval);
lv_text2 = FixedToText(lv_realCurrent, 0);
lv_numberOfPlayerUnitsByCOP = UnitGroupCount(UnitGroup(null, gv_p01_USER, RegionCircle(UnitGetPosition(lp_unit), 2.0), UnitFilter(0, 0, (1 << c_targetFilterAir) | (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive);
if ((lv_numberOfPlayerUnitsByCOP == 0)) {
gv_transmissionProgress[lp_index] = (gv_transmissionProgress[lp_index] + lv_count);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner04.sc2map/MapScript.galaxy:802
TechTreeAbilityAllow(gv_p01_USER, AbilityCommand("OdinNuclearStrike", 0), false);
autoCA6DCF8D_g = UnitGroup("AutoTurret", c_playerAny, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
autoCA6DCF8D_u = UnitGroupCount(autoCA6DCF8D_g, c_unitCountAll);
for (;; autoCA6DCF8D_u -= 1) {
autoCA6DCF8D_var = UnitGroupUnitFromEnd(autoCA6DCF8D_g, autoCA6DCF8D_u);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner04.sc2map/MapScript.galaxy:917
gv_statueBullhorns[6] = UnitFromId(215);
autoF69A218C_g = UnitGroup("Beacon_Terran", 0, RegionPlayableMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32))), 0);
autoF69A218C_u = UnitGroupCount(autoF69A218C_g, c_unitCountAll);
for (;; autoF69A218C_u -= 1) {
autoF69A218C_var = UnitGroupUnitFromEnd(autoF69A218C_g, autoF69A218C_u);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner04.sc2map/MapScript.galaxy:935
libNtve_gf_AddUnitGroupToUnitGroup(UnitGroup("WolfStatue", 0, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), gv_statues);
auto6464AF62_g = gv_statues;
auto6464AF62_u = UnitGroupCount(auto6464AF62_g, c_unitCountAll);
for (;; auto6464AF62_u -= 1) {
auto6464AF62_var = UnitGroupUnitFromEnd(auto6464AF62_g, auto6464AF62_u);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner04.sc2map/MapScript.galaxy:944
UnitSetTeamColorIndex(UnitFromId(1081), 1);
auto604BE6FC_g = UnitGroup("LogisticsHeadquarters", gv_p08_DOMINION, RegionPlayableMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
auto604BE6FC_u = UnitGroupCount(auto604BE6FC_g, c_unitCountAll);
for (;; auto604BE6FC_u -= 1) {
auto604BE6FC_var = UnitGroupUnitFromEnd(auto604BE6FC_g, auto604BE6FC_u);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner04.sc2map/MapScript.galaxy:955
}
autoB1D9B05D_g = UnitGroup(null, gv_p02_DOMINION_INFANTRY, null, UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32))), 0);
autoB1D9B05D_u = UnitGroupCount(autoB1D9B05D_g, c_unitCountAll);
for (;; autoB1D9B05D_u -= 1) {
autoB1D9B05D_var = UnitGroupUnitFromEnd(autoB1D9B05D_g, autoB1D9B05D_u);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner04.sc2map/MapScript.galaxy:962
}
auto0FE472A7_g = UnitGroup(null, gv_p02_DOMINION_INFANTRY, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
auto0FE472A7_u = UnitGroupCount(auto0FE472A7_g, c_unitCountAll);
for (;; auto0FE472A7_u -= 1) {
auto0FE472A7_var = UnitGroupUnitFromEnd(auto0FE472A7_g, auto0FE472A7_u);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner05s.sc2map/MapScript.galaxy:812
if ((libNtve_gf_DifficultyValueInt(1, 0, 0, 0) == 1)) {
autoC18DB74C_g = UnitGroup("Beacon_Terran", gv_p07_NEUTRAL, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
autoC18DB74C_u = UnitGroupCount(autoC18DB74C_g, c_unitCountAll);
for (;; autoC18DB74C_u -= 1) {
autoC18DB74C_var = UnitGroupUnitFromEnd(autoC18DB74C_g, autoC18DB74C_u);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner05s.sc2map/MapScript.galaxy:821
autoFC03208E_g = UnitGroup("Beacon_Terran", gv_p07_NEUTRAL, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
autoFC03208E_u = UnitGroupCount(autoFC03208E_g, c_unitCountAll);
for (;; autoFC03208E_u -= 1) {
autoFC03208E_var = UnitGroupUnitFromEnd(autoFC03208E_g, autoFC03208E_u);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner05s.sc2map/MapScript.galaxy:844
UnitAbilityEnable(gv_turret06, "SentryGunBurrow", false);
auto7239A252_g = UnitGroup("Firebat", gv_p02_DOMINION, RegionFromId(157), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
auto7239A252_u = UnitGroupCount(auto7239A252_g, c_unitCountAll);
for (;; auto7239A252_u -= 1) {
auto7239A252_var = UnitGroupUnitFromEnd(auto7239A252_g, auto7239A252_u);