# Units In Region With Alliance To Player

Grammar — Units in reg having alliance alliance with player player matching unitFilter, with at most count
FlagsNative | Function

Returns a unit group containing all units within the alliance filter specified.

# Arguments

  • int — Player
  • int<preset::UnitAlliance> — Alliance
  • region — Region
  • unitfilter — Unit Filter
  • int — Count

Returns — unitgroup

native unitgroup UnitGroupAlliance(
	int player,
	int alliance,
	region r,
	unitfilter filter,
	int maxCount,
);

Category: Unit Group / Useful Unit Groups

# Examples

campaigns/liberty.sc2campaignbase.sc2data/TriggerLibs/Tactical/TactCampAI.galaxy:528

    filter = UnitFilterStr(AIEffectStr(player, c_EF_HybridStunArea, c_fieldFilters));
    enemyRegion = RegionCircle(UnitGetPosition(aiUnit), AIEffectFixed(player, c_EF_HybridStunArea, c_fieldAreaRadius0));
    enemyGroup = UnitGroupAlliance(player, c_unitAllianceEnemy, enemyRegion, filter, c_noMaxCount);

    //  Only include enemies that can attack our allies.

campaigns/liberty.sc2campaignbase.sc2data/TriggerLibs/Tactical/TactCampAI.galaxy:716

    filter = UnitFilterStr(AIEffectStr(player, c_EF_PsionicShockWaveArea, c_fieldFilters));
    enemyRegion = RegionCircle(UnitGetPosition(aiUnit), psiShockRange);
    enemyGroup = UnitGroupAlliance(player, c_unitAllianceEnemy, enemyRegion, filter, c_noMaxCount);

    //  Only care if there are enemies that attack our allies.

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson03b.sc2map/MapScript.galaxy:1684

    gf_KillUnitsInRegion(gv_eGG_UNIT, gv_p07_ZERG_INFESTED, gv_infestationRegion[lv_colonyIndex]);
    libNtve_gf_PlayAnimationOnDoodadsInRegion(gv_infestationRegion[lv_colonyIndex], "CreepCloud", c_animNameDefault, "Dead", c_animFlagPlayForever, c_animTimeDefault);
    if ((gv_infestationColonyLost[lv_colonyIndex] == false) && (UnitGroupCount(UnitGroupAlliance(gv_p01_USER, c_unitAllianceEnemy, gv_infestationRegion[lv_colonyIndex], UnitFilter((1 << c_targetFilterStructure), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 1), c_unitCountAlive) == 0)) {
        MinimapPing(PlayerGroupAll(), RegionGetCenter(gv_infestationRegion[lv_colonyIndex]), 6.0, Color(0.00, 100.00, 0.00));
        UIAlertPoint("Trigger", gv_p01_USER, StringExternal("Param/Value/FF1DC2BE"), null, RegionGetCenter(gv_infestationRegion[lv_colonyIndex]));

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson03b.sc2map/MapScript.galaxy:1733

    lv_colonyIndex = 1;
    for ( ; ( (auto970A2294_ai >= 0 && lv_colonyIndex <= auto970A2294_ae) || (auto970A2294_ai < 0 && lv_colonyIndex >= auto970A2294_ae) ) ; lv_colonyIndex += auto970A2294_ai ) {
        if ((gv_infestationColonyLost[lv_colonyIndex] == true) && (gv_infestationColonyCleanedMsg[lv_colonyIndex] == false) && (UnitGroupCount(UnitGroupAlliance(gv_p01_USER, c_unitAllianceEnemy, gv_infestationRegion[lv_colonyIndex], UnitFilter((1 << c_targetFilterStructure), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 1), c_unitCountAlive) == 0)) {
            gv_infestationColonyCleanedMsg[lv_colonyIndex] = true;
            gv_zergInfestationCounter -= 1;

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson03b.sc2map/MapScript.galaxy:2511

    lv_colonyIndex = 1;
    for ( ; ( (auto6508C8F3_ai >= 0 && lv_colonyIndex <= auto6508C8F3_ae) || (auto6508C8F3_ai < 0 && lv_colonyIndex >= auto6508C8F3_ae) ) ; lv_colonyIndex += auto6508C8F3_ai ) {
        if ((UnitGroupCount(UnitGroupAlliance(gv_p01_USER, c_unitAllianceEnemy, gv_infestationRegion[lv_colonyIndex], UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 1), c_unitCountAlive) == 0)) {
            autoEAA00682_g = UnitGroup("InfestableHut", gv_p05_COLONIST, gv_infestationRegion[lv_colonyIndex], UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
            autoEAA00682_u = UnitGroupCount(autoEAA00682_g, c_unitCountAll);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner01.sc2map/MapScript.galaxy:5843

        UnitIssueOrder(auto7CF4C2ED_var, Order(AbilityCommand("stop", 0)), c_orderQueueReplace);
    }
    auto78EAE4ED_g = UnitGroupAlliance(gv_pLAYER_02_DOMINION, c_unitAllianceAlly, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
    auto78EAE4ED_u = UnitGroupCount(auto78EAE4ED_g, c_unitCountAll);
    for (;; auto78EAE4ED_u -= 1) {

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/traynor02.sc2map/MapScript.galaxy:1972

    TriggerExecute(gt_DominionRebelResponseWave, true, false);
    TriggerExecute(gt_ObjectiveRebelsComplete, true, false);
    while (!((UnitGroupCount(UnitGroupAlliance(gv_pLAYER_02_DOMINION, c_unitAllianceAlly, RegionFromId(25), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) == 0))) {
        Wait(1.0, c_timeGame);
    }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/traynor02.sc2map/MapScript.galaxy:4860

        UnitRemove(auto699F5875_var);
    }
    auto29CC7B0A_g = UnitGroupAlliance(gv_pLAYER_02_DOMINION, c_unitAllianceAlly, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
    auto29CC7B0A_u = UnitGroupCount(auto29CC7B0A_g, c_unitCountAll);
    for (;; auto29CC7B0A_u -= 1) {

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/traynor02.sc2map/MapScript.galaxy:4867

        UnitRemove(auto29CC7B0A_var);
    }
    auto89BCB8F3_g = UnitGroupAlliance(gv_pLAYER_02_DOMINION, c_unitAllianceAlly, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
    auto89BCB8F3_u = UnitGroupCount(auto89BCB8F3_g, c_unitCountAll);
    for (;; auto89BCB8F3_u -= 1) {

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/traynor03.sc2map/MapScript.galaxy:1056

        autoED36AC6D_var = UnitGroupUnitFromEnd(autoED36AC6D_g, autoED36AC6D_u);
        if (autoED36AC6D_var == null) { break; }
        if ((UnitGroupCount(UnitGroupAlliance(gv_pLAYER01_USER, c_unitAllianceEnemy, RegionCircle(UnitGetPosition(autoED36AC6D_var), 20.0), UnitFilter(0, 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile) | (1 << c_targetFilterBuried), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1)) {
            libNtve_gf_PlayAnimation(libNtve_gf_MainActorofUnit(autoED36AC6D_var), c_animNameDefault, "Stand Work", c_animFlagNonLooping, 0.0);
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh02.sc2map/MapScript.galaxy:3437

    // Conditions
    if (testConds) {
        if (!((UnitGroupCount(UnitGroupAlliance(gv_p2_PROTOSS_EAST_ATTACKERS, c_unitAllianceAlly, RegionEntireMap(), UnitFilter((1 << c_targetFilterPreventDefeat), 0, (1 << c_targetFilterMissile) | (1 << c_targetFilterCloaked), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) == 0))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus01.sc2map/MapScript.galaxy:875

    }

    gv_savePoint1UnitGroup = UnitGroupAlliance(gv_p3_TEMPLE, c_unitAllianceAlly, RegionFromId(20), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
    while (true) {
        Wait(1.0, c_timeGame);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus01.sc2map/MapScript.galaxy:912

    }

    gv_savePoint2UnitGroup = UnitGroupAlliance(gv_p3_TEMPLE, c_unitAllianceAlly, RegionFromId(50), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
    while (true) {
        Wait(1.0, c_timeGame);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus01.sc2map/MapScript.galaxy:1162


        }
        if ((UnitGroupCount(UnitGroupAlliance(gv_p3_TEMPLE, c_unitAllianceEnemy, RegionCircle(UnitGetPosition(gv_artifact), 13.0), UnitFilter(0, 0, (1 << c_targetFilterMissile) | (1 << c_targetFilterBuried) | (1 << c_targetFilterCloaked), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1)) {
            lv_stalkerTarget = UnitGetPosition(libNtve_gf_ClosestUnitToPoint(UnitGetPosition(gv_artifact), UnitGroupAlliance(gv_p3_TEMPLE, c_unitAllianceEnemy, RegionCircle(UnitGetPosition(gv_artifact), 14.0), UnitFilter(0, 0, (1 << c_targetFilterMissile) | (1 << c_targetFilterBuried) | (1 << c_targetFilterCloaked), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0)));
            UnitIssueOrder(lv_stalker1, OrderTargetingPoint(AbilityCommand("attack", 0), lv_stalkerTarget), c_orderQueueReplace);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus01.sc2map/MapScript.galaxy:1163

        }
        if ((UnitGroupCount(UnitGroupAlliance(gv_p3_TEMPLE, c_unitAllianceEnemy, RegionCircle(UnitGetPosition(gv_artifact), 13.0), UnitFilter(0, 0, (1 << c_targetFilterMissile) | (1 << c_targetFilterBuried) | (1 << c_targetFilterCloaked), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1)) {
            lv_stalkerTarget = UnitGetPosition(libNtve_gf_ClosestUnitToPoint(UnitGetPosition(gv_artifact), UnitGroupAlliance(gv_p3_TEMPLE, c_unitAllianceEnemy, RegionCircle(UnitGetPosition(gv_artifact), 14.0), UnitFilter(0, 0, (1 << c_targetFilterMissile) | (1 << c_targetFilterBuried) | (1 << c_targetFilterCloaked), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0)));
            UnitIssueOrder(lv_stalker1, OrderTargetingPoint(AbilityCommand("attack", 0), lv_stalkerTarget), c_orderQueueReplace);
            UnitIssueOrder(lv_stalker2, OrderTargetingPoint(AbilityCommand("attack", 0), lv_stalkerTarget), c_orderQueueReplace);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus01.sc2map/MapScript.galaxy:1950


    if ((UnitGroupCount(gv_artifactGuardiansNorth, c_unitCountAlive) > 0)) {
        lv_enemyGroup = UnitGroupAlliance(gv_p3_TEMPLE, c_unitAllianceEnemy, RegionFromId(63), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
        if ((UnitGroupCount(lv_enemyGroup, c_unitCountAlive) > 0)) {
            autoB75B9F15_g = gv_artifactGuardiansNorth;

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus01.sc2map/MapScript.galaxy:2005


    if ((UnitGroupCount(gv_artifactGuardiansSouth, c_unitCountAlive) > 0)) {
        lv_enemyGroup = UnitGroupAlliance(gv_p3_TEMPLE, c_unitAllianceEnemy, RegionFromId(64), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
        if ((UnitGroupCount(lv_enemyGroup, c_unitCountAlive) > 0)) {
            autoC8A4FE47_g = gv_artifactGuardiansSouth;

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus01.sc2map/MapScript.galaxy:2155

        }

        lv_enemies = UnitGroupAlliance(gv_p2_ZERG, c_unitAllianceEnemy, RegionFromId(63), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
        if ((UnitGroupCount(UnitGroupFilter(null, c_playerAny, lv_enemies, UnitFilter((1 << c_targetFilterGround), 0, 0, 0), 0), c_unitCountAlive) > 1)) {
            lv_target = UnitGetPosition(libNtve_gf_ClosestUnitToPoint(UnitGetPosition(gv_artifact), UnitGroupFilter(null, c_playerAny, lv_enemies, UnitFilter((1 << c_targetFilterGround), 0, 0, 0), 0)));

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus01.sc2map/MapScript.galaxy:2900

    }

    if (((UnitIsAlive(UnitFromId(124)) == true) || (UnitGroupCount(UnitGroupAlliance(gv_p5_UPPER_CAUSEWAY, c_unitAllianceAlly, RegionFromId(61), UnitFilter((1 << c_targetFilterStructure), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) > 0))) {
        libNtve_gf_CreateUnitsAtPoint2(36, "Zergling", 0, gv_p2_ZERG, RegionGetCenter(RegionFromId(15)));
        lv_extraUnits = UnitLastCreatedGroup();

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus05.sc2map/MapScript.galaxy:506

    gv_gROUPRipFieldGeneratorResponse01 = UnitGroup(null, gv_pLAYER_02_ScriptedTOSS, RegionFromId(26), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
    gv_gROUPRipFieldGeneratorResponse02 = UnitGroup("Carrier", gv_pLAYER_04_DarkTOSS, RegionFromId(27), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
    autoFFDE84A2_g = UnitGroupAlliance(gv_pLAYER_01_USER, c_unitAllianceEnemy, RegionFromId(3), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
    autoFFDE84A2_u = UnitGroupCount(autoFFDE84A2_g, c_unitCountAll);
    for (;; autoFFDE84A2_u -= 1) {

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus05.sc2map/MapScript.galaxy:2422

        }

        if (!((UnitGroupCount(UnitGroupAlliance(gv_pLAYER_02_ScriptedTOSS, c_unitAllianceEnemy, RegionCircle(UnitGetPosition(gv_uNITDaMothership), 15.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 3))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus05.sc2map/MapScript.galaxy:2438

        autoDAD5E4FA_var = UnitGroupUnitFromEnd(autoDAD5E4FA_g, autoDAD5E4FA_u);
        if (autoDAD5E4FA_var == null) { break; }
        UnitSetCustomValue(autoDAD5E4FA_var, 0, IntToFixed(UnitGroupCount(UnitGroupAlliance(gv_pLAYER_02_ScriptedTOSS, c_unitAllianceEnemy, RegionCircle(UnitGetPosition(autoDAD5E4FA_var), 2.0), UnitFilter(0, 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterRawResource) | (1 << c_targetFilterMissile) | (1 << c_targetFilterDestructible), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterInvulnerable - 32)) | (1 << (c_targetFilterBenign - 32))), 0), c_unitCountAlive)));
    }
    autoD1A466A2_g = gv_vortexTargetGroup;

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian03.sc2map/MapScript.galaxy:1500

        }

        if (!(((gv_recentBuildingDeaths >= 3) || (UnitGroupCount(UnitGroupAlliance(gv_pLAYER_USER, c_unitAllianceEnemy, RegionFromId(22), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 75)))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian03.sc2map/MapScript.galaxy:1512

    TriggerEnable(TriggerGetCurrent(), false);
    TriggerQueueEnter();
    if (((gv_gameOver == true) || (UnitAbilityGetCooldown(gv_artifact, "EnergyNova", "Abil/Supernova") != 0.0) || ((gv_recentBuildingDeaths < 2) && (UnitGroupCount(UnitGroupAlliance(gv_pLAYER_USER, c_unitAllianceEnemy, RegionFromId(22), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) < 60)))) {
        TriggerEnable(TriggerGetCurrent(), true);
        return true;

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tzeratul02.sc2map/MapScript.galaxy:467

    // Automatic Variable Declarations
    // Implementation
    return UnitGroupAlliance(UnitGetOwner(lp_unit), c_unitAllianceEnemy, RegionCircle(UnitGetPosition(lp_unit), lp_range), lp_filter, 0);
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson03b.sc2mapMapScript.galaxy:1684

    gf_KillUnitsInRegion(gv_eGG_UNIT, gv_p07_ZERG_INFESTED, gv_infestationRegion[lv_colonyIndex]);
    libNtve_gf_PlayAnimationOnDoodadsInRegion(gv_infestationRegion[lv_colonyIndex], "CreepCloud", c_animNameDefault, "Dead", c_animFlagPlayForever, c_animTimeDefault);
    if ((gv_infestationColonyLost[lv_colonyIndex] == false) && (UnitGroupCount(UnitGroupAlliance(gv_p01_USER, c_unitAllianceEnemy, gv_infestationRegion[lv_colonyIndex], UnitFilter((1 << c_targetFilterStructure), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 1), c_unitCountAlive) == 0)) {
        MinimapPing(PlayerGroupAll(), RegionGetCenter(gv_infestationRegion[lv_colonyIndex]), 6.0, Color(0.00, 100.00, 0.00));
        UIAlertPoint("Trigger", gv_p01_USER, StringExternal("Param/Value/FF1DC2BE"), null, RegionGetCenter(gv_infestationRegion[lv_colonyIndex]));

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson03b.sc2mapMapScript.galaxy:1733

    lv_colonyIndex = 1;
    for ( ; ( (auto970A2294_ai >= 0 && lv_colonyIndex <= auto970A2294_ae) || (auto970A2294_ai < 0 && lv_colonyIndex >= auto970A2294_ae) ) ; lv_colonyIndex += auto970A2294_ai ) {
        if ((gv_infestationColonyLost[lv_colonyIndex] == true) && (gv_infestationColonyCleanedMsg[lv_colonyIndex] == false) && (UnitGroupCount(UnitGroupAlliance(gv_p01_USER, c_unitAllianceEnemy, gv_infestationRegion[lv_colonyIndex], UnitFilter((1 << c_targetFilterStructure), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 1), c_unitCountAlive) == 0)) {
            gv_infestationColonyCleanedMsg[lv_colonyIndex] = true;
            gv_zergInfestationCounter -= 1;

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson03b.sc2mapMapScript.galaxy:2511

    lv_colonyIndex = 1;
    for ( ; ( (auto6508C8F3_ai >= 0 && lv_colonyIndex <= auto6508C8F3_ae) || (auto6508C8F3_ai < 0 && lv_colonyIndex >= auto6508C8F3_ae) ) ; lv_colonyIndex += auto6508C8F3_ai ) {
        if ((UnitGroupCount(UnitGroupAlliance(gv_p01_USER, c_unitAllianceEnemy, gv_infestationRegion[lv_colonyIndex], UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 1), c_unitCountAlive) == 0)) {
            autoEAA00682_g = UnitGroup("InfestableHut", gv_p05_COLONIST, gv_infestationRegion[lv_colonyIndex], UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
            autoEAA00682_u = UnitGroupCount(autoEAA00682_g, c_unitCountAll);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner01.sc2mapMapScript.galaxy:5843

        UnitIssueOrder(auto7CF4C2ED_var, Order(AbilityCommand("stop", 0)), c_orderQueueReplace);
    }
    auto78EAE4ED_g = UnitGroupAlliance(gv_pLAYER_02_DOMINION, c_unitAllianceAlly, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
    auto78EAE4ED_u = UnitGroupCount(auto78EAE4ED_g, c_unitCountAll);
    for (;; auto78EAE4ED_u -= 1) {

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/traynor02.sc2mapMapScript.galaxy:1972

    TriggerExecute(gt_DominionRebelResponseWave, true, false);
    TriggerExecute(gt_ObjectiveRebelsComplete, true, false);
    while (!((UnitGroupCount(UnitGroupAlliance(gv_pLAYER_02_DOMINION, c_unitAllianceAlly, RegionFromId(25), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) == 0))) {
        Wait(1.0, c_timeGame);
    }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/traynor02.sc2mapMapScript.galaxy:4860

        UnitRemove(auto699F5875_var);
    }
    auto29CC7B0A_g = UnitGroupAlliance(gv_pLAYER_02_DOMINION, c_unitAllianceAlly, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
    auto29CC7B0A_u = UnitGroupCount(auto29CC7B0A_g, c_unitCountAll);
    for (;; auto29CC7B0A_u -= 1) {

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/traynor02.sc2mapMapScript.galaxy:4867

        UnitRemove(auto29CC7B0A_var);
    }
    auto89BCB8F3_g = UnitGroupAlliance(gv_pLAYER_02_DOMINION, c_unitAllianceAlly, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
    auto89BCB8F3_u = UnitGroupCount(auto89BCB8F3_g, c_unitCountAll);
    for (;; auto89BCB8F3_u -= 1) {

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/traynor03.sc2mapMapScript.galaxy:1056

        autoED36AC6D_var = UnitGroupUnitFromEnd(autoED36AC6D_g, autoED36AC6D_u);
        if (autoED36AC6D_var == null) { break; }
        if ((UnitGroupCount(UnitGroupAlliance(gv_pLAYER01_USER, c_unitAllianceEnemy, RegionCircle(UnitGetPosition(autoED36AC6D_var), 20.0), UnitFilter(0, 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile) | (1 << c_targetFilterBuried), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1)) {
            libNtve_gf_PlayAnimation(libNtve_gf_MainActorofUnit(autoED36AC6D_var), c_animNameDefault, "Stand Work", c_animFlagNonLooping, 0.0);
        }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh02.sc2mapMapScript.galaxy:3437

    // Conditions
    if (testConds) {
        if (!((UnitGroupCount(UnitGroupAlliance(gv_p2_PROTOSS_EAST_ATTACKERS, c_unitAllianceAlly, RegionEntireMap(), UnitFilter((1 << c_targetFilterPreventDefeat), 0, (1 << c_targetFilterMissile) | (1 << c_targetFilterCloaked), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) == 0))) {
            return false;
        }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus01.sc2mapMapScript.galaxy:875

    }

    gv_savePoint1UnitGroup = UnitGroupAlliance(gv_p3_TEMPLE, c_unitAllianceAlly, RegionFromId(20), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
    while (true) {
        Wait(1.0, c_timeGame);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus01.sc2mapMapScript.galaxy:912

    }

    gv_savePoint2UnitGroup = UnitGroupAlliance(gv_p3_TEMPLE, c_unitAllianceAlly, RegionFromId(50), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
    while (true) {
        Wait(1.0, c_timeGame);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus01.sc2mapMapScript.galaxy:1162


        }
        if ((UnitGroupCount(UnitGroupAlliance(gv_p3_TEMPLE, c_unitAllianceEnemy, RegionCircle(UnitGetPosition(gv_artifact), 13.0), UnitFilter(0, 0, (1 << c_targetFilterMissile) | (1 << c_targetFilterBuried) | (1 << c_targetFilterCloaked), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1)) {
            lv_stalkerTarget = UnitGetPosition(libNtve_gf_ClosestUnitToPoint(UnitGetPosition(gv_artifact), UnitGroupAlliance(gv_p3_TEMPLE, c_unitAllianceEnemy, RegionCircle(UnitGetPosition(gv_artifact), 14.0), UnitFilter(0, 0, (1 << c_targetFilterMissile) | (1 << c_targetFilterBuried) | (1 << c_targetFilterCloaked), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0)));
            UnitIssueOrder(lv_stalker1, OrderTargetingPoint(AbilityCommand("attack", 0), lv_stalkerTarget), c_orderQueueReplace);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus01.sc2mapMapScript.galaxy:1163

        }
        if ((UnitGroupCount(UnitGroupAlliance(gv_p3_TEMPLE, c_unitAllianceEnemy, RegionCircle(UnitGetPosition(gv_artifact), 13.0), UnitFilter(0, 0, (1 << c_targetFilterMissile) | (1 << c_targetFilterBuried) | (1 << c_targetFilterCloaked), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1)) {
            lv_stalkerTarget = UnitGetPosition(libNtve_gf_ClosestUnitToPoint(UnitGetPosition(gv_artifact), UnitGroupAlliance(gv_p3_TEMPLE, c_unitAllianceEnemy, RegionCircle(UnitGetPosition(gv_artifact), 14.0), UnitFilter(0, 0, (1 << c_targetFilterMissile) | (1 << c_targetFilterBuried) | (1 << c_targetFilterCloaked), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0)));
            UnitIssueOrder(lv_stalker1, OrderTargetingPoint(AbilityCommand("attack", 0), lv_stalkerTarget), c_orderQueueReplace);
            UnitIssueOrder(lv_stalker2, OrderTargetingPoint(AbilityCommand("attack", 0), lv_stalkerTarget), c_orderQueueReplace);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus01.sc2mapMapScript.galaxy:1950


    if ((UnitGroupCount(gv_artifactGuardiansNorth, c_unitCountAlive) > 0)) {
        lv_enemyGroup = UnitGroupAlliance(gv_p3_TEMPLE, c_unitAllianceEnemy, RegionFromId(63), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
        if ((UnitGroupCount(lv_enemyGroup, c_unitCountAlive) > 0)) {
            autoB75B9F15_g = gv_artifactGuardiansNorth;

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus01.sc2mapMapScript.galaxy:2005


    if ((UnitGroupCount(gv_artifactGuardiansSouth, c_unitCountAlive) > 0)) {
        lv_enemyGroup = UnitGroupAlliance(gv_p3_TEMPLE, c_unitAllianceEnemy, RegionFromId(64), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
        if ((UnitGroupCount(lv_enemyGroup, c_unitCountAlive) > 0)) {
            autoC8A4FE47_g = gv_artifactGuardiansSouth;

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus01.sc2mapMapScript.galaxy:2155

        }

        lv_enemies = UnitGroupAlliance(gv_p2_ZERG, c_unitAllianceEnemy, RegionFromId(63), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
        if ((UnitGroupCount(UnitGroupFilter(null, c_playerAny, lv_enemies, UnitFilter((1 << c_targetFilterGround), 0, 0, 0), 0), c_unitCountAlive) > 1)) {
            lv_target = UnitGetPosition(libNtve_gf_ClosestUnitToPoint(UnitGetPosition(gv_artifact), UnitGroupFilter(null, c_playerAny, lv_enemies, UnitFilter((1 << c_targetFilterGround), 0, 0, 0), 0)));

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus01.sc2mapMapScript.galaxy:2900

    }

    if (((UnitIsAlive(UnitFromId(124)) == true) || (UnitGroupCount(UnitGroupAlliance(gv_p5_UPPER_CAUSEWAY, c_unitAllianceAlly, RegionFromId(61), UnitFilter((1 << c_targetFilterStructure), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) > 0))) {
        libNtve_gf_CreateUnitsAtPoint2(36, "Zergling", 0, gv_p2_ZERG, RegionGetCenter(RegionFromId(15)));
        lv_extraUnits = UnitLastCreatedGroup();

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus05.sc2mapMapScript.galaxy:506

    gv_gROUPRipFieldGeneratorResponse01 = UnitGroup(null, gv_pLAYER_02_ScriptedTOSS, RegionFromId(26), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
    gv_gROUPRipFieldGeneratorResponse02 = UnitGroup("Carrier", gv_pLAYER_04_DarkTOSS, RegionFromId(27), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
    autoFFDE84A2_g = UnitGroupAlliance(gv_pLAYER_01_USER, c_unitAllianceEnemy, RegionFromId(3), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
    autoFFDE84A2_u = UnitGroupCount(autoFFDE84A2_g, c_unitCountAll);
    for (;; autoFFDE84A2_u -= 1) {

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus05.sc2mapMapScript.galaxy:2422

        }

        if (!((UnitGroupCount(UnitGroupAlliance(gv_pLAYER_02_ScriptedTOSS, c_unitAllianceEnemy, RegionCircle(UnitGetPosition(gv_uNITDaMothership), 15.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 3))) {
            return false;
        }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus05.sc2mapMapScript.galaxy:2438

        autoDAD5E4FA_var = UnitGroupUnitFromEnd(autoDAD5E4FA_g, autoDAD5E4FA_u);
        if (autoDAD5E4FA_var == null) { break; }
        UnitSetCustomValue(autoDAD5E4FA_var, 0, IntToFixed(UnitGroupCount(UnitGroupAlliance(gv_pLAYER_02_ScriptedTOSS, c_unitAllianceEnemy, RegionCircle(UnitGetPosition(autoDAD5E4FA_var), 2.0), UnitFilter(0, 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterRawResource) | (1 << c_targetFilterMissile) | (1 << c_targetFilterDestructible), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterInvulnerable - 32)) | (1 << (c_targetFilterBenign - 32))), 0), c_unitCountAlive)));
    }
    autoD1A466A2_g = gv_vortexTargetGroup;

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian03.sc2mapMapScript.galaxy:1500

        }

        if (!(((gv_recentBuildingDeaths >= 3) || (UnitGroupCount(UnitGroupAlliance(gv_pLAYER_USER, c_unitAllianceEnemy, RegionFromId(22), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 75)))) {
            return false;
        }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian03.sc2mapMapScript.galaxy:1512

    TriggerEnable(TriggerGetCurrent(), false);
    TriggerQueueEnter();
    if (((gv_gameOver == true) || (UnitAbilityGetCooldown(gv_artifact, "EnergyNova", "Abil/Supernova") != 0.0) || ((gv_recentBuildingDeaths < 2) && (UnitGroupCount(UnitGroupAlliance(gv_pLAYER_USER, c_unitAllianceEnemy, RegionFromId(22), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) < 60)))) {
        TriggerEnable(TriggerGetCurrent(), true);
        return true;

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul02.sc2mapMapScript.galaxy:467

    // Automatic Variable Declarations
    // Implementation
    return UnitGroupAlliance(UnitGetOwner(lp_unit), c_unitAllianceEnemy, RegionCircle(UnitGetPosition(lp_unit), lp_range), lp_filter, 0);
}

campaigns/swarm.sc2campaignbase.sc2data/TriggerLibs/Tactical/TactCampAI.galaxy:528

    filter = UnitFilterStr(AIEffectStr(player, c_EF_HybridStunArea, c_fieldFilters));
    enemyRegion = RegionCircle(UnitGetPosition(aiUnit), AIEffectFixed(player, c_EF_HybridStunArea, c_fieldAreaRadius0));
    enemyGroup = UnitGroupAlliance(player, c_unitAllianceEnemy, enemyRegion, filter, c_noMaxCount);

    //  Only include enemies that can attack our allies.

campaigns/swarm.sc2campaignbase.sc2data/TriggerLibs/Tactical/TactCampAI.galaxy:716

    filter = UnitFilterStr(AIEffectStr(player, c_EF_PsionicShockWaveArea, c_fieldFilters));
    enemyRegion = RegionCircle(UnitGetPosition(aiUnit), psiShockRange);
    enemyGroup = UnitGroupAlliance(player, c_unitAllianceEnemy, enemyRegion, filter, c_noMaxCount);

    //  Only care if there are enemies that attack our allies.

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zchar03.sc2map/MapScript.galaxy:549

    // Automatic Variable Declarations
    // Implementation
    return UnitGroupAlliance(UnitGetOwner(lp_unit), c_unitAllianceEnemy, RegionCircle(UnitGetPosition(lp_unit), lp_range), lp_filter, 0);
}

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zchar03.sc2map/MapScript.galaxy:1178

        UnitMagazineArm(auto5AB55BFE_var, AbilityCommand("ArmSiloWithNuke", 0), 1);
    }
    autoA0FA9D93_g = UnitGroupAlliance(gv_pLAYER_01_USER, c_unitAllianceEnemy, RegionPlayableMap(), UnitFilter(0, (1 << (c_targetFilterHasEnergy - 32)), (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
    autoA0FA9D93_u = UnitGroupCount(autoA0FA9D93_g, c_unitCountAll);
    for (;; autoA0FA9D93_u -= 1) {

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zchar03.sc2map/MapScript.galaxy:2832

        }

        if (!((UnitGroupCount(UnitGroupAlliance(gv_pLAYER_01_USER, c_unitAllianceEnemy, RegionFromId(19), UnitFilter((1 << c_targetFilterStructure), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 1), c_unitCountAlive) == 0))) {
            return false;
        }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zchar03.sc2map/MapScript.galaxy:3047

        }

        if (!((UnitGroupCount(UnitGroupAlliance(gv_pLAYER_01_USER, c_unitAllianceEnemy, RegionFromId(3), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 1), c_unitCountAlive) == 0))) {
            return false;
        }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zexpedition01.sc2map/MapScript.galaxy:845

        if ((UnitGroupCount(UnitGroup(null, gv_pLAYER_01_USER, gv_flashFreezeRetreatAreas[lv_currentArea], UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 1), c_unitCountAlive) > 0)) {
            lv_currentUnit = UnitGroupClosestToPoint(UnitGroup(null, gv_pLAYER_01_USER, gv_flashFreezeRetreatAreas[lv_currentArea], UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), RegionGetCenter(gv_flashFreezeRetreatAreas[lv_currentArea]));
            if ((gf_SupplyValueOfUnitGroup(UnitGroupAlliance(gv_pLAYER_01_USER, c_unitAllianceEnemy, RegionCircle(UnitGetPosition(lv_currentUnit), 16.0), UnitFilter(0, 0, (1 << c_targetFilterWorker) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0)) > gf_SupplyValueOfUnitGroup(UnitGroup(null, gv_pLAYER_01_USER, RegionCircle(UnitGetPosition(lv_currentUnit), 16.0), UnitFilter(0, 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterWorker) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0)))) {
                lv_deliverRetreatLine = true;
                break;

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zexpedition01.sc2map/MapScript.galaxy:3729


    TriggerEnable(TriggerGetCurrent(), false);
    if ((gf_SupplyValueOfUnitGroup(UnitGroupAlliance(gv_pLAYER_01_USER, c_unitAllianceEnemy, EventUnitRegion(), UnitFilter(0, 0, (1 << c_targetFilterWorker) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0)) > gf_SupplyValueOfUnitGroup(UnitGroup(null, gv_pLAYER_01_USER, RegionCircle(UnitGetPosition(EventUnit()), 16.0), UnitFilter(0, 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterWorker) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0)))) {
        TriggerQueueEnter();
        libSwaC_gf_SetAllSoundChannelVolumesCampaign(libSwaC_ge_VolumeChannelModeCampaign_Speech);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zexpedition01.sc2map/MapScript.galaxy:3788


    TriggerEnable(TriggerGetCurrent(), false);
    if ((gf_SupplyValueOfUnitGroup(UnitGroupAlliance(gv_pLAYER_01_USER, c_unitAllianceEnemy, EventUnitRegion(), UnitFilter(0, 0, (1 << c_targetFilterWorker) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0)) > gf_SupplyValueOfUnitGroup(UnitGroup(null, gv_pLAYER_01_USER, RegionCircle(UnitGetPosition(EventUnit()), 16.0), UnitFilter(0, 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterWorker) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0)))) {
        TriggerQueueEnter();
        libSwaC_gf_SetAllSoundChannelVolumesCampaign(libSwaC_ge_VolumeChannelModeCampaign_Speech);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zhybrid01.sc2map/MapScript.galaxy:1012

        UnitMagazineArm(autoB089A23E_var, AbilityCommand("ArmSiloWithNuke", 0), 1);
    }
    autoA37977C8_g = UnitGroupAlliance(gv_pLAYER_01_USER, c_unitAllianceEnemy, RegionEntireMap(), UnitFilter(0, (1 << (c_targetFilterHasEnergy - 32)), (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
    autoA37977C8_u = UnitGroupCount(autoA37977C8_g, c_unitCountAll);
    for (;; autoA37977C8_u -= 1) {

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zhybrid01.sc2map/MapScript.galaxy:4119

    }

    lv_dominions = UnitGroupAlliance(gv_pLAYER_06_INFESTED, c_unitAllianceEnemy, gv_finalPlatform, UnitFilter((1 << c_targetFilterGround), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
    UnitGroupRemove(lv_dominions, UnitFromId(212));
    if ((libNtve_gf_UnitGroupIsDead(lv_dominions) == true)) {

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zhybrid01.sc2map/MapScript.galaxy:4131

    }
    else {
        lv_dominions_Left = UnitGroupAlliance(gv_pLAYER_06_INFESTED, c_unitAllianceEnemy, RegionFromId(58), UnitFilter((1 << c_targetFilterGround), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
        UnitGroupRemove(lv_dominions_Left, UnitFromId(212));
        lv_target_Left = UnitGroupClosestToPoint(lv_dominions_Left, PointFromId(1239));

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zhybrid02.sc2map/MapScript.galaxy:620


    // Implementation
    lv_aTTACK_GROUP = UnitGroupAlliance(gv_pLAYER_01_USER, c_unitAllianceEnemy, lp_fORCE_REGION, UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
    while (!((UnitGroupCount(UnitGroup(null, gv_pLAYER_01_USER, lp_tRIGGERING_REGION, UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterSummoned - 32))), 1), c_unitCountAlive) >= 1))) {
        Wait(0.3, c_timeReal);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zhybrid02.sc2map/MapScript.galaxy:1116

    // Automatic Variable Declarations
    // Implementation
    return UnitGroupAlliance(UnitGetOwner(lp_unit), c_unitAllianceEnemy, RegionCircle(UnitGetPosition(lp_unit), lp_range), lp_filter, 0);
}

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zhybrid02.sc2map/MapScript.galaxy:1624

    lv_index = 1;
    for ( ; ( (auto77490BEA_ai >= 0 && lv_index <= auto77490BEA_ae) || (auto77490BEA_ai < 0 && lv_index >= auto77490BEA_ae) ) ; lv_index += auto77490BEA_ai ) {
        gv_perfPausedUnits[lv_index] = UnitGroupAlliance(c_playerAny, c_unitAllianceEnemy, gv_perfPausedRegions[lv_index], UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
        auto9EC22E3B_g = gv_perfPausedUnits[lv_index];
        auto9EC22E3B_u = UnitGroupCount(auto9EC22E3B_g, c_unitCountAll);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zkorhal01.sc2map/MapScript.galaxy:2283

        }

        if (!((UnitGroupCount(UnitGroupAlliance(gv_pLAYER_01_USER, c_unitAllianceEnemy, RegionFromId(6), UnitFilter((1 << c_targetFilterStructure), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 1), c_unitCountAlive) == 0))) {
            return false;
        }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zkorhal01.sc2map/MapScript.galaxy:2321

        }

        if (!((UnitGroupCount(UnitGroupAlliance(gv_pLAYER_01_USER, c_unitAllianceEnemy, RegionFromId(13), UnitFilter((1 << c_targetFilterStructure), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 1), c_unitCountAlive) == 0))) {
            return false;
        }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zkorhal01.sc2map/MapScript.galaxy:3198

        }

        if (!((UnitGroupCount(UnitGroupAlliance(gv_pLAYER_01_USER, c_unitAllianceEnemy, RegionFromId(16), UnitFilter(0, 0, (1 << c_targetFilterAir) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 1), c_unitCountAlive) == 0))) {
            return false;
        }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zkorhal01.sc2map/MapScript.galaxy:3242

        }

        if (!((UnitGroupCount(UnitGroupAlliance(gv_pLAYER_01_USER, c_unitAllianceEnemy, RegionFromId(15), UnitFilter(0, 0, (1 << c_targetFilterAir) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 1), c_unitCountAlive) == 0))) {
            return false;
        }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zkorhal01.sc2map/MapScript.galaxy:3691

    TriggerEnable(gt_Expansion1Cleared, true);
    libSwaC_gf_SetAllSoundChannelVolumesCampaign(libNtve_ge_VolumeChannelMode_Speech);
    if ((UnitGroupCount(UnitGroupAlliance(gv_pLAYER_01_USER, c_unitAllianceEnemy, RegionFromId(6), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) > 0)) {
        libSwaC_gf_SendTransmissionCampaign(null, "zMission_Korhal01|Line00013", c_transmissionDurationAdd, 0.0, true, libSwaC_ge_CampaignTransmissionPortraitOptioins_HidePortraitAfter, libSwaC_ge_CampaignTransmissionCueSoundOptions_DefaultCueSoundBehavior);
        libSwaC_gf_SendTransmissionCampaign(null, "zMission_Korhal01|Line00017", c_transmissionDurationAdd, 0.0, true, libSwaC_ge_CampaignTransmissionPortraitOptioins_HidePortraitAfter, libSwaC_ge_CampaignTransmissionCueSoundOptions_DefaultCueSoundBehavior);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zkorhal01.sc2map/MapScript.galaxy:3739

    TriggerEnable(gt_Expansion2Cleared, true);
    libSwaC_gf_SetAllSoundChannelVolumesCampaign(libNtve_ge_VolumeChannelMode_Speech);
    if ((UnitGroupCount(UnitGroupAlliance(gv_pLAYER_01_USER, c_unitAllianceEnemy, RegionFromId(13), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) > 0)) {
        libSwaC_gf_SendTransmissionCampaign(null, "zMission_Korhal01|Line00014", c_transmissionDurationAdd, 0.0, true, libSwaC_ge_CampaignTransmissionPortraitOptioins_HidePortraitAfter, libSwaC_ge_CampaignTransmissionCueSoundOptions_DefaultCueSoundBehavior);
    }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zkorhal02.sc2map/MapScript.galaxy:511

    // Automatic Variable Declarations
    // Implementation
    return UnitGroupAlliance(UnitGetOwner(lp_unit), c_unitAllianceEnemy, RegionCircle(UnitGetPosition(lp_unit), lp_range), lp_filter, 0);
}

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zkorhal02.sc2map/MapScript.galaxy:541


    // Implementation
    lv_attackingUnitGroup = UnitGroupAlliance(gv_pLAYER_01_USER, c_unitAllianceEnemy, lp_fORCE_REGION, UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
    AISetGroupScriptControlled(lv_attackingUnitGroup, true);
    while (!((gv_gameOver == false) && (gv_inCinematic == false) && (UnitGroupCount(UnitGroup(null, gv_pLAYER_01_USER, lp_tRIGGERING_REGION, UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 1), c_unitCountAlive) >= 1))) {

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zkorhal03.sc2map/MapScript.galaxy:543

    // Automatic Variable Declarations
    // Implementation
    return UnitGroupAlliance(UnitGetOwner(lp_unit), c_unitAllianceEnemy, RegionCircle(UnitGetPosition(lp_unit), lp_range), lp_filter, 0);
}

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zkorhal03.sc2map/MapScript.galaxy:1126

    lv_index = 1;
    for ( ; ( (auto7735AF4B_ai >= 0 && lv_index <= auto7735AF4B_ae) || (auto7735AF4B_ai < 0 && lv_index >= auto7735AF4B_ae) ) ; lv_index += auto7735AF4B_ai ) {
        gv_perfPausedUnits[lv_index] = UnitGroupAlliance(gv_PLAYER_01_USER, c_unitAllianceEnemy, gv_perfPausedRegions[lv_index], UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
        auto0304D3DF_g = gv_perfPausedUnits[lv_index];
        auto0304D3DF_u = UnitGroupCount(auto0304D3DF_g, c_unitCountAll);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zkorhal03.sc2map/MapScript.galaxy:1575

    gv_lane2Paused = false;
    gv_lane3Paused = false;
    if ((UnitGroupCount(UnitGroupAlliance(gv_PLAYER_01_USER, c_unitAllianceEnemy, RegionFromId(16), UnitFilter((1 << c_targetFilterStructure), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) > 0)) {
        libSwaC_gf_CreateObjectivePing(false, UnitGetPosition(UnitFromId(8)), StringExternal("Param/Value/1C3B9AFC"));
        gv_lanePing[1] = PingLastCreated();

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zkorhal03.sc2map/MapScript.galaxy:1582

    }

    if ((UnitGroupCount(UnitGroupAlliance(gv_PLAYER_01_USER, c_unitAllianceEnemy, RegionFromId(8), UnitFilter((1 << c_targetFilterStructure), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) > 0)) {
        libSwaC_gf_CreateObjectivePing(false, UnitGetPosition(UnitFromId(289)), StringExternal("Param/Value/40832EE5"));
        gv_lanePing[2] = PingLastCreated();

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zkorhal03.sc2map/MapScript.galaxy:1589

    }

    if ((UnitGroupCount(UnitGroupAlliance(gv_PLAYER_01_USER, c_unitAllianceEnemy, RegionFromId(18), UnitFilter((1 << c_targetFilterStructure), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) > 0)) {
        libSwaC_gf_CreateObjectivePing(false, UnitGetPosition(UnitFromId(141)), StringExternal("Param/Value/8963E359"));
        gv_lanePing[3] = PingLastCreated();

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zkorhal03.sc2map/MapScript.galaxy:1640

    TriggerEnable(TriggerGetCurrent(), false);
    TriggerExecute(gt_Lane1SpawnLoop, true, false);
    while (!((gv_gameOver == false) && (UnitGroupCount(UnitGroupAlliance(gv_PLAYER_01_USER, c_unitAllianceEnemy, RegionFromId(16), UnitFilter((1 << c_targetFilterStructure), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) == 0))) {
        Wait(1.0, c_timeAI);
    }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zkorhal03.sc2map/MapScript.galaxy:1828

    TriggerEnable(TriggerGetCurrent(), false);
    TriggerExecute(gt_Lane2SpawnLoop, true, false);
    while (!((gv_gameOver == false) && (UnitGroupCount(UnitGroupAlliance(gv_PLAYER_01_USER, c_unitAllianceEnemy, RegionFromId(8), UnitFilter((1 << c_targetFilterStructure), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) == 0))) {
        Wait(1.0, c_timeAI);
    }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zkorhal03.sc2map/MapScript.galaxy:2022

    TriggerEnable(TriggerGetCurrent(), false);
    TriggerExecute(gt_Lane3SpawnLoop, true, false);
    while (!((gv_gameOver == false) && (UnitGroupCount(UnitGroupAlliance(gv_PLAYER_01_USER, c_unitAllianceEnemy, RegionFromId(18), UnitFilter((1 << c_targetFilterStructure), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) == 0))) {
        Wait(1.0, c_timeAI);
    }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zkorhal03.sc2map/MapScript.galaxy:3856

        }
        else {
            if ((UnitGroupCount(UnitGroupAlliance(gv_PLAYER_02_DOMINION_RED, c_unitAllianceEnemy, RegionCircle(UnitGetPosition(UnitFromId(603)), 9.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 1), c_unitCountAlive) == 0)) {
                break;
            }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zlab03.sc2map/MapScript.galaxy:622

    // Automatic Variable Declarations
    // Implementation
    return UnitGroupAlliance(UnitGetOwner(lp_unit), c_unitAllianceEnemy, RegionCircle(UnitGetPosition(lp_unit), lp_range), lp_filter, 0);
}

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zlab03.sc2map/MapScript.galaxy:1802

    }

    gv_structuresDestroyedS1Max = UnitGroupCount(UnitGroupAlliance(gv_pLAYER_01_USER, c_unitAllianceEnemy, RegionFromId(11), UnitFilter((1 << c_targetFilterStructure), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive);
    UIAlertPoint("Trigger", gv_pLAYER_01_USER, StringExternal("Param/Value/94436C89"), null, CameraInfoGetTarget(CameraInfoFromId(572)));
    TriggerExecute(gt_StartHarvesting, true, false);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zlab03.sc2map/MapScript.galaxy:5211

    }

    if ((UnitGroupCount(UnitGroupAlliance(gv_pLAYER_01_USER, c_unitAllianceEnemy, RegionCircle(UnitGetPosition(EventUnit()), 12.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 5), c_unitCountAlive) < 5)) {
        return true;
    }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zlab03.sc2map/MapScript.galaxy:5294

    }

    if ((UnitGroupCount(UnitGroupAlliance(gv_pLAYER_01_USER, c_unitAllianceEnemy, RegionCircle(UnitGetPosition(EventUnit()), 12.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 5), c_unitCountAlive) < 5)) {
        return true;
    }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zlab03.sc2map/MapScript.galaxy:5377

    }

    if ((UnitGroupCount(UnitGroupAlliance(gv_pLAYER_01_USER, c_unitAllianceEnemy, RegionCircle(UnitGetPosition(EventUnit()), 12.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 5), c_unitCountAlive) < 5)) {
        return true;
    }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zlab03.sc2map/MapScript.galaxy:7618

    }

    lv_structuresLeft = UnitGroupCount(UnitGroupAlliance(gv_pLAYER_01_USER, c_unitAllianceEnemy, RegionFromId(11), UnitFilter((1 << c_targetFilterStructure), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive);
    gv_structuresDestroyedS1Stat = (gv_structuresDestroyedS1Max - lv_structuresLeft);
    if ((gv_structuresDestroyedS1Stat >= 15)) {

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zspace01.sc2map/MapScript.galaxy:568


    // Implementation
    lv_targetGroup = UnitGroupAlliance(gv_pLAYER_01_USER, c_unitAllianceEnemy, RegionCircle(gv_hyperionFighterTarget, (gv_hyperionFighterTargetRadius - 1.0)), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
    UnitGroupAddUnitGroup(lv_targetGroup, UnitGroup("SJMercStarport", c_playerAny, RegionCircle(gv_hyperionFighterTarget, 9.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
    UnitGroupAddUnitGroup(lv_targetGroup, UnitGroup("SJSpaceStationMercenary", c_playerAny, RegionCircle(gv_hyperionFighterTarget, 12.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 1));

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zzerus01.sc2map/MapScript.galaxy:1905

        autoE2C06E36_var = UnitGroupUnitFromEnd(autoE2C06E36_g, autoE2C06E36_u);
        if (autoE2C06E36_var == null) { break; }
        lv_enemies = UnitGroupAlliance(UnitGetOwner(autoE2C06E36_var), c_unitAllianceEnemy, RegionCircle(UnitGetPosition(autoE2C06E36_var), 8.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
        if ((libNtve_gf_UnitGroupIsDead(lv_enemies) == false)) {
            UnitGroupAddUnitGroup(lv_potentialEnemies, lv_enemies);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zzerus02.sc2map/MapScript.galaxy:3062

        }

        lv_leftEnemyGroup = UnitGroupAlliance(gv_pLAYER_01_USER, c_unitAllianceEnemy, RegionFromId(35), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
        lv_middleEnemyGroup = UnitGroupAlliance(gv_pLAYER_01_USER, c_unitAllianceEnemy, RegionFromId(36), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
        lv_rightEnemyGroup = UnitGroupAlliance(gv_pLAYER_01_USER, c_unitAllianceEnemy, RegionFromId(37), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zzerus02.sc2map/MapScript.galaxy:3063


        lv_leftEnemyGroup = UnitGroupAlliance(gv_pLAYER_01_USER, c_unitAllianceEnemy, RegionFromId(35), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
        lv_middleEnemyGroup = UnitGroupAlliance(gv_pLAYER_01_USER, c_unitAllianceEnemy, RegionFromId(36), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
        lv_rightEnemyGroup = UnitGroupAlliance(gv_pLAYER_01_USER, c_unitAllianceEnemy, RegionFromId(37), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
        lv_fullEnemyGroup = UnitGroupEmpty();

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zzerus02.sc2map/MapScript.galaxy:3064

        lv_leftEnemyGroup = UnitGroupAlliance(gv_pLAYER_01_USER, c_unitAllianceEnemy, RegionFromId(35), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
        lv_middleEnemyGroup = UnitGroupAlliance(gv_pLAYER_01_USER, c_unitAllianceEnemy, RegionFromId(36), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
        lv_rightEnemyGroup = UnitGroupAlliance(gv_pLAYER_01_USER, c_unitAllianceEnemy, RegionFromId(37), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
        lv_fullEnemyGroup = UnitGroupEmpty();
        UnitGroupAddUnitGroup(lv_fullEnemyGroup, lv_leftEnemyGroup);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zzerus02.sc2map/MapScript.galaxy:3069

        UnitGroupAddUnitGroup(lv_fullEnemyGroup, lv_middleEnemyGroup);
        UnitGroupAddUnitGroup(lv_fullEnemyGroup, lv_rightEnemyGroup);
        UnitGroupAddUnitGroup(lv_fullEnemyGroup, UnitGroupAlliance(gv_pLAYER_01_USER, c_unitAllianceEnemy, RegionFromId(38), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
        auto62188331_g = gv_spawnLocustsLeft;
        auto62188331_u = UnitGroupCount(auto62188331_g, c_unitCountAll);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/voidprologue/voidprologue03.sc2map/MapScript.galaxy:6400

    while ((gv_gameOver == false)) {
        if ((gv_inCinematic == false)) {
            lv_attackTargets = UnitGroupAlliance(gv_pLAYER_02_TALDARIM, c_unitAllianceEnemy, RegionFromId(163), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
            UnitGroupRemove(lv_attackTargets, gv_zeratul);
            autoB0D64614_g = gv_s3FinalStretchEnemyGroupCombined;

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/voidprologue/voidprologue03.sc2map/MapScript.galaxy:6462

    while ((gv_gameOver == false)) {
        if ((gv_inCinematic == false)) {
            lv_attackTargets = UnitGroupAlliance(gv_pLAYER_07_TALIS, c_unitAllianceEnemy, RegionFromId(163), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
            autoFA044A09_g = gv_s3FinalStretchTalisGroupCombined;
            autoFA044A09_u = UnitGroupCount(autoFA044A09_g, c_unitCountAll);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zchar03.sc2mapMapScript.galaxy:549

    // Automatic Variable Declarations
    // Implementation
    return UnitGroupAlliance(UnitGetOwner(lp_unit), c_unitAllianceEnemy, RegionCircle(UnitGetPosition(lp_unit), lp_range), lp_filter, 0);
}

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zchar03.sc2mapMapScript.galaxy:1178

        UnitMagazineArm(auto5AB55BFE_var, AbilityCommand("ArmSiloWithNuke", 0), 1);
    }
    autoA0FA9D93_g = UnitGroupAlliance(gv_pLAYER_01_USER, c_unitAllianceEnemy, RegionPlayableMap(), UnitFilter(0, (1 << (c_targetFilterHasEnergy - 32)), (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
    autoA0FA9D93_u = UnitGroupCount(autoA0FA9D93_g, c_unitCountAll);
    for (;; autoA0FA9D93_u -= 1) {

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zchar03.sc2mapMapScript.galaxy:2832

        }

        if (!((UnitGroupCount(UnitGroupAlliance(gv_pLAYER_01_USER, c_unitAllianceEnemy, RegionFromId(19), UnitFilter((1 << c_targetFilterStructure), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 1), c_unitCountAlive) == 0))) {
            return false;
        }

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zchar03.sc2mapMapScript.galaxy:3047

        }

        if (!((UnitGroupCount(UnitGroupAlliance(gv_pLAYER_01_USER, c_unitAllianceEnemy, RegionFromId(3), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 1), c_unitCountAlive) == 0))) {
            return false;
        }

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zexpedition01.sc2mapMapScript.galaxy:845

        if ((UnitGroupCount(UnitGroup(null, gv_pLAYER_01_USER, gv_flashFreezeRetreatAreas[lv_currentArea], UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 1), c_unitCountAlive) > 0)) {
            lv_currentUnit = UnitGroupClosestToPoint(UnitGroup(null, gv_pLAYER_01_USER, gv_flashFreezeRetreatAreas[lv_currentArea], UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), RegionGetCenter(gv_flashFreezeRetreatAreas[lv_currentArea]));
            if ((gf_SupplyValueOfUnitGroup(UnitGroupAlliance(gv_pLAYER_01_USER, c_unitAllianceEnemy, RegionCircle(UnitGetPosition(lv_currentUnit), 16.0), UnitFilter(0, 0, (1 << c_targetFilterWorker) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0)) > gf_SupplyValueOfUnitGroup(UnitGroup(null, gv_pLAYER_01_USER, RegionCircle(UnitGetPosition(lv_currentUnit), 16.0), UnitFilter(0, 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterWorker) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0)))) {
                lv_deliverRetreatLine = true;
                break;

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zexpedition01.sc2mapMapScript.galaxy:3729


    TriggerEnable(TriggerGetCurrent(), false);
    if ((gf_SupplyValueOfUnitGroup(UnitGroupAlliance(gv_pLAYER_01_USER, c_unitAllianceEnemy, EventUnitRegion(), UnitFilter(0, 0, (1 << c_targetFilterWorker) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0)) > gf_SupplyValueOfUnitGroup(UnitGroup(null, gv_pLAYER_01_USER, RegionCircle(UnitGetPosition(EventUnit()), 16.0), UnitFilter(0, 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterWorker) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0)))) {
        TriggerQueueEnter();
        libSwaC_gf_SetAllSoundChannelVolumesCampaign(libSwaC_ge_VolumeChannelModeCampaign_Speech);