# Remove Unit From Unit Group

Grammar — Remove u from g
FlagsNative | Action

Removes the specified unit from the specified unit group.

# Arguments

  • unitgroup — Unit Group
  • unit — Unit

Returns — void

native void UnitGroupRemove(
	unitgroup inGroup,
	unit inUnit,
);

Category: Unit Group / Groups

# Examples

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:2578

    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);
        UnitRemove(lv_unit);
    }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson01.sc2map/MapScript.galaxy:1399

            for (auto8EFED1E5_i = 1; auto8EFED1E5_i <= auto8EFED1E5_n; auto8EFED1E5_i += 1) {
                lv_tempUnit = UnitGroupRandomUnit(lv_zerglingGroup, c_unitCountAlive);
                UnitGroupRemove(lv_zerglingGroup, lv_tempUnit);
                UnitGroupAdd(gv_zergOnTheLoose2, lv_tempUnit);
            }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson01.sc2map/MapScript.galaxy:3682


    AISetUnitScriptControlled(EventUnit(), true);
    UnitGroupRemove(gv_convoyGuards, EventUnit());
    UnitIssueOrder(EventUnit(), OrderTargetingPoint(AbilityCommand("attack", 0), PointFromId(1186)), c_orderQueueReplace);
    UnitIssueOrder(EventUnit(), OrderTargetingUnit(null, gv_activeCivilianShip), c_orderQueueAddToEnd);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson01.sc2map/MapScript.galaxy:3954

        autoFBC7DD9D_var = UnitGroupUnitFromEnd(autoFBC7DD9D_g, autoFBC7DD9D_u);
        if (autoFBC7DD9D_var == null) { break; }
        UnitGroupRemove(gv_activeNydusWorms, autoFBC7DD9D_var);
        libNtve_gf_PlayAnimation(libNtve_gf_MainActorofUnit(autoFBC7DD9D_var), c_animNameDefault, "Unburrow", 0, c_animTimeDefault);
    }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson02.sc2map/MapScript.galaxy:921

        lv_tempUnit = UnitGroupRandomUnit(lv_attackersLeft, c_unitCountAlive);
        UnitIssueOrder(lv_tempUnit, OrderTargetingPoint(AbilityCommand("attack", 0), PointFromId(230)), c_orderQueueReplace);
        UnitGroupRemove(lv_attackersLeft, lv_tempUnit);
    }
    while (true) {

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson02.sc2map/MapScript.galaxy:931

        lv_tempUnit = UnitGroupRandomUnit(lv_attackersRight, c_unitCountAlive);
        UnitIssueOrder(lv_tempUnit, OrderTargetingPoint(AbilityCommand("attack", 0), PointFromId(230)), c_orderQueueReplace);
        UnitGroupRemove(lv_attackersRight, lv_tempUnit);
    }
    return true;

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson02.sc2map/MapScript.galaxy:1463

        }
        else {
            UnitGroupRemove(gv_infestorAggressionInhibitor, EventUnit());
        }
    }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson02.sc2map/MapScript.galaxy:1635

            if (lv_u == null) { break; }
            UnitBehaviorAdd(lv_u, "SolarCombustion", lv_u, 1);
            UnitGroupRemove(lv_doomedUnits, lv_u);
        }
        if ((libNtve_gf_UnitGroupIsDead(lv_doomedUnits) == true)) {

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson02.sc2map/MapScript.galaxy:1765

                libNtve_gf_CreateUnitsAtPoint2(1, "InfestedTerranCampaign", 0, gv_pLAYER_04_INFESTEDREFUGEES, UnitGetPosition(lv_pickedSpawner));
                AISetUnitSuicide(UnitLastCreated(), true);
                UnitGroupRemove(lv_spawners, lv_pickedSpawner);
            }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson02.sc2map/MapScript.galaxy:4935

        lv_randomUnit = UnitGroupRandomUnit(lv_tempUnitGroup, c_unitCountAlive);
        UnitIssueOrder(lv_randomUnit, Order(AbilityCommand("BurrowInfestedTerranCampaignDown", 0)), c_orderQueueReplace);
        UnitGroupRemove(lv_tempUnitGroup, lv_randomUnit);
        Wait(0.1, c_timeReal);
    }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson02.sc2map/MapScript.galaxy:4956

        lv_randomUnit = UnitGroupRandomUnit(lv_tempUnitGroup, c_unitCountAlive);
        UnitBehaviorAdd(lv_randomUnit, "SolarCombustion", lv_randomUnit, 1);
        UnitGroupRemove(lv_tempUnitGroup, lv_randomUnit);
        Wait(0.15, c_timeReal);
    }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson03a.sc2map/MapScript.galaxy:1811

        auto7D21AEAB_var = UnitGroupUnitFromEnd(auto7D21AEAB_g, auto7D21AEAB_u);
        if (auto7D21AEAB_var == null) { break; }
        UnitGroupRemove(gv_terrorFleetGroup, auto7D21AEAB_var);
        AISetUnitSuicide(auto7D21AEAB_var, true);
    }

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

        }

        UnitGroupRemove(lv_overlordPool, lv_overlord);
        UnitGroupAdd(gv_infestationOverlords[lp_colonyIndex], lv_overlord);
        UnitSetOwner(lv_overlord, gv_p07_ZERG_INFESTED, true);

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

        }

        UnitGroupRemove(lv_overseerPool, lv_overseer);
        UnitGroupAdd(gv_infestationOverseers[lp_colonyIndex], lv_overseer);
        UnitSetOwner(lv_overseer, gv_p07_ZERG_INFESTED, true);

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

            if (auto42F1D01E_var == null) { break; }
            if ((UnitGroupCount(UnitGroup(null, gv_p01_USER, RegionCircle(UnitGetPosition(auto42F1D01E_var), 5.0), UnitFilter(0, 0, (1 << c_targetFilterAir) | (1 << c_targetFilterMissile) | (1 << c_targetFilterCloaked), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1)) {
                UnitGroupRemove(gv_carrionBirds, auto42F1D01E_var);
                gf_OrderCarrionBirdtoFlyAway(auto42F1D01E_var);
            }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/traynor01.sc2map/MapScript.galaxy:5572

    libNtve_gf_MakeUnitFacePoint(lv_rUNNER, UnitGetPosition(UnitFromId(331)), 0.0);
    UnitIssueOrder(lv_rUNNER, Order(AbilityCommand("move", 2)), c_orderQueueReplace);
    UnitGroupRemove(lv_cIVVIES, lv_rUNNER);
    CameraApplyInfo(gv_p1_USER, CameraInfoFromId(1684), 0.0, -1, 10, true);
    TriggerSkippableBegin(PlayerGroupAll(), 0, null, true, false);

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

    }

    UnitGroupRemove(gv_mineGuardGroup, EventUnit());
    UnitRemove(EventUnit());
    if ((UnitGroupCount(gv_mineGuardGroup, c_unitCountAlive) == 0)) {

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:2539

        }

        UnitGroupRemove(gv_visibleUnits, lp_unit);
        libNtve_gf_ShowHideUnit(lp_unit, false);
        gf_HideFlashingTextTag(false, lp_unit);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:7485

    // Implementation
    if ((libCamp_gf_MissionStatusCheck(libCamp_ge_MapID_MapTValerian03, libCamp_ge_MissionStatus_Available) == false)) {
        UnitGroupRemove(gv_clickables, gv_charArtifact);
        gf_TurnClickableOnOff(gv_charArtifact, false);
    }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:9848


    // Implementation
    UnitGroupRemove(gv_hotspots_Flashing, lp_unit);
    lv_tag = gf_HotspotFlashingTextTag(lp_unit);
    if ((lv_tag == c_textTagNone)) {

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:16047

    gv_bridgeRoomUnits = UnitGroup(null, c_playerAny, RegionFromId(2), UnitFilter(0, 0, 0, 0), 0);
    gv_bridgeNose = UnitFromId(150);
    UnitGroupRemove(gv_bridgeRoomUnits, gv_bridgeNose);
    libNtve_gf_ShowHideUnit(gv_bridgeNose, false);
    gv_cantinaRoom = UnitFromId(15);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:16546

    gv_briefing_MarSaraLeft = UnitFromId(10);
    gv_briefing_MarSaraRight = UnitFromId(14);
    UnitGroupRemove(gv_marSaraRoomUnits, gv_briefing_MarSaraMain);
    UnitGroupRemove(gv_marSaraRoomUnits, gv_briefing_MarSaraCenter);
    UnitGroupRemove(gv_marSaraRoomUnits, gv_briefing_MarSaraLeft);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:16547

    gv_briefing_MarSaraRight = UnitFromId(14);
    UnitGroupRemove(gv_marSaraRoomUnits, gv_briefing_MarSaraMain);
    UnitGroupRemove(gv_marSaraRoomUnits, gv_briefing_MarSaraCenter);
    UnitGroupRemove(gv_marSaraRoomUnits, gv_briefing_MarSaraLeft);
    UnitGroupRemove(gv_marSaraRoomUnits, gv_briefing_MarSaraRight);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:16548

    UnitGroupRemove(gv_marSaraRoomUnits, gv_briefing_MarSaraMain);
    UnitGroupRemove(gv_marSaraRoomUnits, gv_briefing_MarSaraCenter);
    UnitGroupRemove(gv_marSaraRoomUnits, gv_briefing_MarSaraLeft);
    UnitGroupRemove(gv_marSaraRoomUnits, gv_briefing_MarSaraRight);
    gv_briefing_BridgeMain = UnitFromId(334);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:16549

    UnitGroupRemove(gv_marSaraRoomUnits, gv_briefing_MarSaraCenter);
    UnitGroupRemove(gv_marSaraRoomUnits, gv_briefing_MarSaraLeft);
    UnitGroupRemove(gv_marSaraRoomUnits, gv_briefing_MarSaraRight);
    gv_briefing_BridgeMain = UnitFromId(334);
    gv_briefing_BridgeCenter = UnitFromId(338);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:16554

    gv_briefing_BridgeLeft = UnitFromId(336);
    gv_briefing_BridgeRight = UnitFromId(337);
    UnitGroupRemove(gv_bridgeRoomUnits, gv_briefing_BridgeMain);
    UnitGroupRemove(gv_bridgeRoomUnits, gv_briefing_BridgeCenter);
    UnitGroupRemove(gv_bridgeRoomUnits, gv_briefing_BridgeLeft);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:16555

    gv_briefing_BridgeRight = UnitFromId(337);
    UnitGroupRemove(gv_bridgeRoomUnits, gv_briefing_BridgeMain);
    UnitGroupRemove(gv_bridgeRoomUnits, gv_briefing_BridgeCenter);
    UnitGroupRemove(gv_bridgeRoomUnits, gv_briefing_BridgeLeft);
    UnitGroupRemove(gv_bridgeRoomUnits, gv_briefing_BridgeRight);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh01.sc2map/MapScript.galaxy:2230


    Wait(0.5, c_timeGame);
    UnitGroupRemove(gv_toshReapers, EventUnit());
    libNtve_gf_RescueUnit(EventUnit(), gv_p01_USER, true);
    autoDFF77333_g = gv_toshReapers;

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh01.sc2map/MapScript.galaxy:2285

        auto2D9551B0_var = UnitGroupUnitFromEnd(auto2D9551B0_g, auto2D9551B0_u);
        if (auto2D9551B0_var == null) { break; }
        UnitGroupRemove(gv_toshReapers, auto2D9551B0_var);
        UnitIssueOrder(auto2D9551B0_var, OrderTargetingPoint(AbilityCommand("move", 0), RegionGetCenter(RegionFromId(18))), c_orderQueueReplace);
        libNtve_gf_RescueUnit(auto2D9551B0_var, gv_p01_USER, true);

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

            if (autoD682E799_var == null) { break; }
            if ((UnitGetCustomValue(autoD682E799_var, 4) > 1.0)) {
                UnitGroupRemove(lv_terrazineGroup, autoD682E799_var);
            }

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

        if (autoA7EA04C4_var == null) { break; }
        if ((UnitGetCustomValue(autoA7EA04C4_var, 4) > 1.0)) {
            UnitGroupRemove(lv_terrazineGroup, autoA7EA04C4_var);
        }

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

    UnitSetCustomValue(EventUnit(), 1, 0.0);
    UnitSetCustomValue(EventUnit(), 2, 0.0);
    UnitGroupRemove(gv_probeHarvesters, EventUnit());
    UnitIssueOrder(EventUnit(), OrderTargetingUnit(AbilityCommand("ProbeHarvest", 0), UnitFromId(39)), c_orderQueueReplace);
    gv_protossScore = (gv_protossScore + 1);

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

        if (auto7359A731_var == null) { break; }
        if ((UnitGetCustomValue(auto7359A731_var, 4) > 1.0)) {
            UnitGroupRemove(lv_rawTerrazineGroup, auto7359A731_var);
        }

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

        if (auto323744EC_var == null) { break; }
        if ((gv_multipleTerrazineSealingFirstTarget == FixedToInt(UnitGetCustomValue(auto323744EC_var, 0)))) {
            UnitGroupRemove(lv_rawTerrazineGroup, auto323744EC_var);
            break;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh03a.sc2map/MapScript.galaxy:354

        UnitSetOwner(lv_prisoner, gv_p2_RAYNOR_LIGHTBLUE, false);
        UnitIssueOrder(lv_prisoner, OrderTargetingPoint(AbilityCommand("move", 0), UnitGetPosition(lv_vehicle)), c_orderQueueReplace);
        UnitGroupRemove(lv_prisonerGroup, lv_prisoner);
    }
    UnitGroupClear(lv_vehicleGroup);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh03a.sc2map/MapScript.galaxy:462

    // Implementation
    if ((((PlayerDifficulty(1) == 1 || PlayerDifficulty(1) == 2) == true) || (UnitGetPropertyFixed(gv_tosh, c_unitPropLife, c_unitPropCurrent) < libNtve_gf_DifficultyValueFixed(250.0, 250.0, 250.0, 200.0)))) {
        UnitGroupRemove(lp_candidates, gv_tosh);
    }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh03a.sc2map/MapScript.galaxy:2752

            if ((libNtve_gf_UnitInRegion(lv_driver, RegionFromId(13)) == true)) {
                lv_targetDiamondback = libNtve_gf_ClosestUnitToPoint(UnitGetPosition(lv_driver), gv_nonActivatedDiamondbacks);
                UnitGroupRemove(gv_nonActivatedDiamondbacks, lv_targetDiamondback);
                libNtve_gf_TurnAnimationPropertiesOff(libNtve_gf_MainActorofUnit(lv_targetDiamondback), "Stand Morph");
                libNtve_gf_PlayAnimation(libNtve_gf_MainActorofUnit(lv_targetDiamondback), "StandMorphEnd", "Stand Morph End", 0, c_animTimeDefault);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh03b.sc2map/MapScript.galaxy:646

    UnitIssueOrder(gv_p1Spectre2, Order(AbilityCommand("move", 2)), c_orderQueueReplace);
    gv_p1Units = UnitGroup(null, c_playerAny, RegionFromId(30), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
    UnitGroupRemove(gv_p1Units, gv_nova);
    gv_p2TerrazineDepot = UnitFromId(96);
    gv_p2Raven = UnitFromId(432);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh03b.sc2map/MapScript.galaxy:2092

            auto7D1E9C97_val = libNtve_gf_DifficultyValueInt(1, 1, 2, 2);
            if (auto7D1E9C97_val == 1) {
                UnitGroupRemove(lv_potentialvictims, gv_nova);
            }
            else if (auto7D1E9C97_val == 2) {

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh03b.sc2map/MapScript.galaxy:2096

            else if (auto7D1E9C97_val == 2) {
                if ((UnitGetPropertyFixed(gv_nova, c_unitPropLife, c_unitPropCurrent) < 250.0)) {
                    UnitGroupRemove(lv_potentialvictims, gv_nova);
                }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh03b.sc2map/MapScript.galaxy:2105

                    if (auto18934A38_var == null) { break; }
                    if ((auto18934A38_var != gv_nova) && (UnitGetPropertyFixed(auto18934A38_var, c_unitPropLifePercent, c_unitPropCurrent) <= 25.0)) {
                        UnitGroupRemove(lv_potentialvictims, auto18934A38_var);
                    }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh03b.sc2map/MapScript.galaxy:2490

        if (auto729F00AE_var == null) { break; }
        if ((EventUnitTargetUnit() == auto729F00AE_var)) {
            UnitGroupRemove(gv_p2LZGuards, auto729F00AE_var);
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh03b.sc2map/MapScript.galaxy:3274

    gf_ArmSilo(lv_silo);
    gv_novaNukeCount += 1;
    UnitGroupRemove(gv_p2Units, gv_p2Silo);
    SoundPlay(SoundLink("Alert_TerranNukeReady", 0), PlayerGroupAll(), 100.0, 0.0);
    MinimapPing(PlayerGroupAll(), UnitGetPosition(lv_silo), 3.0, Color(100.00, 100.00, 0.00));

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh03b.sc2map/MapScript.galaxy:3510

            auto85F7F106_val = libNtve_gf_DifficultyValueInt(1, 1, 2, 2);
            if (auto85F7F106_val == 1) {
                UnitGroupRemove(lv_potentialvictims, gv_nova);
            }
            else if (auto85F7F106_val == 2) {

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh03b.sc2map/MapScript.galaxy:3514

            else if (auto85F7F106_val == 2) {
                if ((UnitGetPropertyFixed(gv_nova, c_unitPropLife, c_unitPropCurrent) < 250.0)) {
                    UnitGroupRemove(lv_potentialvictims, gv_nova);
                }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh03b.sc2map/MapScript.galaxy:3523

                    if (autoB164A4B2_var == null) { break; }
                    if ((autoB164A4B2_var != gv_nova) && (UnitGetPropertyFixed(autoB164A4B2_var, c_unitPropLifePercent, c_unitPropCurrent) <= 25.0)) {
                        UnitGroupRemove(lv_potentialvictims, autoB164A4B2_var);
                    }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh03b.sc2map/MapScript.galaxy:4094

            autoBE858D0C_val = libNtve_gf_DifficultyValueInt(1, 1, 2, 2);
            if (autoBE858D0C_val == 1) {
                UnitGroupRemove(lv_potentialvictims, gv_nova);
            }
            else if (autoBE858D0C_val == 2) {

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus02.sc2map/MapScript.galaxy:327

        if (lv_u == null) { break; }
        AISetUnitSuicide(lv_u, true);
        UnitGroupRemove(gv_suicidalBullies, lv_u);
    }
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus02.sc2map/MapScript.galaxy:2796

            }
            UnitIssueOrder(lv_unit, Order(AbilityCommand("PhasingMode", 0)), c_orderQueueAddToEnd);
            UnitGroupRemove(gv_phasePrismUnitGroups[2], lv_unit);
        }
    }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus02.sc2map/MapScript.galaxy:2864

            }
            UnitIssueOrder(lv_unit, Order(AbilityCommand("PhasingMode", 0)), c_orderQueueAddToEnd);
            UnitGroupRemove(gv_phasePrismUnitGroups[1], lv_unit);
        }
    }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus02.sc2map/MapScript.galaxy:2932

            }
            UnitIssueOrder(lv_unit, Order(AbilityCommand("PhasingMode", 0)), c_orderQueueAddToEnd);
            UnitGroupRemove(gv_phasePrismUnitGroups[3], lv_unit);
        }
    }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus02.sc2map/MapScript.galaxy:3642

        libNtve_gf_AddUnitGroupToUnitGroup(UnitGroup("Immortal", c_playerAny, RegionCircle(UnitGetPosition(EventUnit()), 12.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), lv_localUnits);
        libNtve_gf_AddUnitGroupToUnitGroup(UnitGroup("Carrier", c_playerAny, RegionCircle(UnitGetPosition(EventUnit()), 12.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), lv_localUnits);
        UnitGroupRemove(lv_localUnits, EventUnit());
        auto6C20341F_g = lv_localUnits;
        auto6C20341F_u = UnitGroupCount(auto6C20341F_g, c_unitCountAll);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus02.sc2map/MapScript.galaxy:3715

    libNtve_gf_AddUnitGroupToUnitGroup(UnitGroup("Immortal", c_playerAny, RegionCircle(UnitGetPosition(EventUnit()), 12.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), lv_localUnits);
    libNtve_gf_AddUnitGroupToUnitGroup(UnitGroup("Carrier", c_playerAny, RegionCircle(UnitGetPosition(EventUnit()), 12.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), lv_localUnits);
    UnitGroupRemove(lv_localUnits, EventUnit());
    autoF58A53C8_g = lv_localUnits;
    autoF58A53C8_u = UnitGroupCount(autoF58A53C8_g, c_unitCountAll);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus02.sc2map/MapScript.galaxy:3722

        if (autoF58A53C8_var == null) { break; }
        if ((libNtve_gf_UnitInRegion(autoF58A53C8_var, RegionFromId(6)) == false)) {
            UnitGroupRemove(lv_localUnits, autoF58A53C8_var);
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus02.sc2map/MapScript.galaxy:3794

    libNtve_gf_AddUnitGroupToUnitGroup(UnitGroup("Immortal", c_playerAny, RegionCircle(UnitGetPosition(EventUnit()), 12.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), lv_localUnits);
    libNtve_gf_AddUnitGroupToUnitGroup(UnitGroup("Carrier", c_playerAny, RegionCircle(UnitGetPosition(EventUnit()), 12.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), lv_localUnits);
    UnitGroupRemove(lv_localUnits, EventUnit());
    autoB08D0E56_g = lv_localUnits;
    autoB08D0E56_u = UnitGroupCount(autoB08D0E56_g, c_unitCountAll);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus02.sc2map/MapScript.galaxy:3801

        if (autoB08D0E56_var == null) { break; }
        if ((libNtve_gf_UnitInRegion(autoB08D0E56_var, RegionFromId(6)) == false)) {
            UnitGroupRemove(lv_localUnits, autoB08D0E56_var);
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus02.sc2map/MapScript.galaxy:4064

            if (autoB9279F3F_var == null) { break; }
            if ((UnitGroupCount(UnitGroup(null, gv_p1_USER, RegionCircle(UnitGetPosition(autoB9279F3F_var), 5.0), UnitFilter(0, 0, (1 << c_targetFilterAir) | (1 << c_targetFilterMissile) | (1 << c_targetFilterCloaked), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1)) {
                UnitGroupRemove(gv_carrionBirds, autoB9279F3F_var);
                gf_OrderCarrionBirdtoFlyAway(autoB9279F3F_var);
            }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus03.sc2map/MapScript.galaxy:437

        lv_u = UnitGroupUnitFromEnd(auto5AACA740_g, auto5AACA740_u);
        if (lv_u == null) { break; }
        UnitGroupRemove(gv_moebiusTargets, lv_u);
        UnitKill(lv_u);
    }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttychus04.sc2map/MapScript.galaxy:1629

        if (auto3735C5A5_var == null) { break; }
        if ((UnitGroupCount(UnitGroup(null, gv_pLAYER01_USER, RegionCircle(UnitGetPosition(auto3735C5A5_var), 9.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 3)) {
            UnitGroupRemove(gv_protossP02WarpPrisms, auto3735C5A5_var);
            gf_WarpPrismDefendersWarpIn(gv_superWarpGateP02, libNtve_gf_DifficultyValueInt(2, 2, 2, 3), AbilityCommand("SuperWarpGateTrain", 1), UnitGetPosition(auto3735C5A5_var), 2.0, 45.0, 0.0);
        }

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


    }
    UnitGroupRemove(gv_gROUPUnitsnotinstart, UnitFromId(72));
    UnitGroupRemove(gv_gROUPUnitsnotinstart, UnitFromId(32));
    auto6DB6490A_g = gv_gROUPUnitsnotinstart;

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

    }
    UnitGroupRemove(gv_gROUPUnitsnotinstart, UnitFromId(72));
    UnitGroupRemove(gv_gROUPUnitsnotinstart, UnitFromId(32));
    auto6DB6490A_g = gv_gROUPUnitsnotinstart;
    auto6DB6490A_u = UnitGroupCount(auto6DB6490A_g, c_unitCountAll);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian01.sc2map/MapScript.galaxy:511

            if (autoA8E323EB_var == null) { break; }
            if ((UnitGetType(autoA8E323EB_var) == "PalletMinerals") && (UnitGetType(autoA8E323EB_var) == "PalletGas")) {
                UnitGroupRemove(lv_unitgroup, autoA8E323EB_var);
            }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian01.sc2map/MapScript.galaxy:2539

        if ((UnitGetOwner(autoC91771D7_var) == gv_p08_RESCUABLE)) {
            libNtve_gf_RescueUnit(autoC91771D7_var, gv_p01_USER, true);
            UnitGroupRemove(gv_factoryAllUnits, autoC91771D7_var);
            if ((UnitTypeTestAttribute(UnitGetType(autoC91771D7_var), c_unitAttributeStructure) == true)) {
                gv_statStructuresRescued += 1;

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian01.sc2map/MapScript.galaxy:2589

        if ((UnitGetOwner(auto85840440_var) == gv_p08_RESCUABLE)) {
            libNtve_gf_RescueUnit(auto85840440_var, gv_p01_USER, true);
            UnitGroupRemove(gv_factoryAllUnits, auto85840440_var);
            if ((UnitTypeTestAttribute(UnitGetType(auto85840440_var), c_unitAttributeStructure) == true)) {
                gv_statStructuresRescued += 1;

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian01.sc2map/MapScript.galaxy:2716

        if ((UnitGetOwner(auto6928B596_var) == gv_p08_RESCUABLE)) {
            libNtve_gf_RescueUnit(auto6928B596_var, gv_p01_USER, true);
            UnitGroupRemove(gv_starportAllUnits, auto6928B596_var);
            if ((UnitTypeTestAttribute(UnitGetType(auto6928B596_var), c_unitAttributeStructure) == true)) {
                gv_statStructuresRescued += 1;

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian01.sc2map/MapScript.galaxy:2766

        if ((UnitGetOwner(auto8C1E2B92_var) == gv_p08_RESCUABLE)) {
            libNtve_gf_RescueUnit(auto8C1E2B92_var, gv_p01_USER, true);
            UnitGroupRemove(gv_starportAllUnits, auto8C1E2B92_var);
            if ((UnitTypeTestAttribute(UnitGetType(auto8C1E2B92_var), c_unitAttributeStructure) == true)) {
                gv_statStructuresRescued += 1;

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:577

    UnitIssueOrder(lp_activatedunit, OrderSetAutoCast(AbilityCommand("SapStructure", 0), true), c_orderQueueReplace);
    if ((UnitHasBehavior(gv_tHEONERAYNOR, "Incapacitated") == true)) {
        UnitGroupRemove(lv_targets, gv_tHEONERAYNOR);
    }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:581


    if ((UnitHasBehavior(gv_tHEONESTETMAN, "Incapacitated") == true)) {
        UnitGroupRemove(lv_targets, gv_tHEONESTETMAN);
    }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:585


    if ((UnitHasBehavior(gv_tHEONESWANN, "Incapacitated") == true)) {
        UnitGroupRemove(lv_targets, gv_tHEONESWANN);
    }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:589


    if ((UnitHasBehavior(gv_tHEONETYCHUS, "Incapacitated") == true)) {
        UnitGroupRemove(lv_targets, gv_tHEONETYCHUS);
    }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:949

        UnitGroupAdd(gv__1BroodchamberAllUnits, autoD538A612_var);
    }
    UnitGroupRemove(gv__1BroodchamberAllUnits, gv_tHEONESTETMAN);
    UnitGroupRemove(gv__1BroodchamberAllUnits, gv_tHEONESWANN);
    UnitGroupRemove(gv__1BroodchamberAllUnits, gv_tHEONERAYNOR);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:950

    }
    UnitGroupRemove(gv__1BroodchamberAllUnits, gv_tHEONESTETMAN);
    UnitGroupRemove(gv__1BroodchamberAllUnits, gv_tHEONESWANN);
    UnitGroupRemove(gv__1BroodchamberAllUnits, gv_tHEONERAYNOR);
    UnitGroupRemove(gv__1BroodchamberAllUnits, gv_tHEONETYCHUS);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:951

    UnitGroupRemove(gv__1BroodchamberAllUnits, gv_tHEONESTETMAN);
    UnitGroupRemove(gv__1BroodchamberAllUnits, gv_tHEONESWANN);
    UnitGroupRemove(gv__1BroodchamberAllUnits, gv_tHEONERAYNOR);
    UnitGroupRemove(gv__1BroodchamberAllUnits, gv_tHEONETYCHUS);
    auto7ABE2ECB_g = UnitGroup(null, gv_p2_ZERG, RegionFromId(1), UnitFilter(0, 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:952

    UnitGroupRemove(gv__1BroodchamberAllUnits, gv_tHEONESWANN);
    UnitGroupRemove(gv__1BroodchamberAllUnits, gv_tHEONERAYNOR);
    UnitGroupRemove(gv__1BroodchamberAllUnits, gv_tHEONETYCHUS);
    auto7ABE2ECB_g = UnitGroup(null, gv_p2_ZERG, RegionFromId(1), UnitFilter(0, 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
    auto7ABE2ECB_u = UnitGroupCount(auto7ABE2ECB_g, c_unitCountAll);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:1030

        libNtve_gf_PauseUnit(auto1594EE9F_var, true);
        UnitGroupAdd(gv__1RescuableDominionGroup, auto1594EE9F_var);
        UnitGroupRemove(gv__1BroodchamberAllUnits, auto1594EE9F_var);
    }
    auto342B9A99_g = UnitGroup(null, gv_p2_ZERG, RegionFromId(65), UnitFilter(0, 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian02a.sc2map/MapScript.galaxy:1112

        libNtve_gf_MakeUnitInvulnerable(auto2DAE3571_var, true);
        UnitGroupAdd(gv__2AmbushUnits, auto2DAE3571_var);
        UnitGroupRemove(gv__2BroodchamberAllUnits, auto2DAE3571_var);
    }
    UnitGroupAdd(gv__2GauntletPushbackGroup, UnitFromId(2146));

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian02b.sc2map/MapScript.galaxy:495

            if (auto245CDEAB_var == null) { break; }
            if ((libNtve_gf_UnitIsVisibleToPlayer(auto245CDEAB_var, gv_pLAYER_P07_ZERG_EXP) == false)) {
                UnitGroupRemove(lv_nearbyEnemies, auto245CDEAB_var);
            }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian02b.sc2map/MapScript.galaxy:1417

            AISetUnitScriptControlled(auto4CDF0813_var, false);
            AISetUnitSuicide(auto4CDF0813_var, true);
            UnitGroupRemove(gv_leviathanMutaGroup, auto4CDF0813_var);
        }
    }

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

            if ((libNtve_gf_UnitInRegion(autoD6231E2F_var, RegionCircle(Point(UnitGetCustomValue(autoD6231E2F_var, 0), UnitGetCustomValue(autoD6231E2F_var, 1)), 1.0)) == true) && (UnitGroupCount(UnitCargoGroup(autoD6231E2F_var), c_unitCountAlive) == 0)) {
                UnitIssueOrder(autoD6231E2F_var, Order(AbilityCommand("GenerateCreep", 0)), c_orderQueueReplace);
                UnitGroupRemove(lv_overlordAttackGroup, autoD6231E2F_var);
            }
            else {

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:858

        auto31C696FB_var = UnitGroupUnitFromEnd(auto31C696FB_g, auto31C696FB_u);
        if (auto31C696FB_var == null) { break; }
        UnitGroupRemove(gv_rumbleVanguard, auto31C696FB_var);
    }
    libNtve_gf_AddUnitGroupToUnitGroup(gv_rumbleVanguard, gv_rumbleVanguardAll);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:882

        autoA6CF4A46_var = UnitGroupUnitFromEnd(autoA6CF4A46_g, autoA6CF4A46_u);
        if (autoA6CF4A46_var == null) { break; }
        UnitGroupRemove(gv_rumbleMidguard, autoA6CF4A46_var);
    }
    auto18576A0B_g = UnitGroup(null, gv_p3_ZERG, RegionFromId(113), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:896

        auto53CB19B0_var = UnitGroupUnitFromEnd(auto53CB19B0_g, auto53CB19B0_u);
        if (auto53CB19B0_var == null) { break; }
        UnitGroupRemove(gv_rumbleRearguard, auto53CB19B0_var);
    }
    UnitIssueOrder(UnitFromId(65), OrderSetAutoCast(AbilityCommand("BurrowZerglingUp", 0), false), c_orderQueueReplace);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:2202

    }

    UnitGroupRemove(gv_patrollingZerg, UnitFromId(221));
    while (true) {
        UnitIssueOrder(UnitFromId(221), OrderTargetingPoint(AbilityCommand("move", 0), RegionGetCenter(RegionFromId(121))), c_orderQueueReplace);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:2762

        if ((RandomInt(0, 1) == 0)) {
            lv_unit = UnitGroupRandomUnit(gv_zergEncircleGroupLeft, c_unitCountAlive);
            UnitGroupRemove(gv_zergEncircleGroupLeft, lv_unit);
            UnitGroupAdd(gv_zergEncircleGroupRight, lv_unit);
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:2767

        else {
            lv_unit = UnitGroupRandomUnit(gv_zergEncircleGroupRight, c_unitCountAlive);
            UnitGroupRemove(gv_zergEncircleGroupRight, lv_unit);
            UnitGroupAdd(gv_zergEncircleGroupLeft, lv_unit);
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:2836

        UnitSetCustomValue(auto304B77BB_var, 0, PointGetX(lv_point));
        UnitSetCustomValue(auto304B77BB_var, 1, PointGetY(lv_point));
        UnitGroupRemove(gv_zergEncircleGroupLeft, auto304B77BB_var);
        UnitGroupAdd(lv_unitGroup, auto304B77BB_var);
    }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:2848

        UnitSetCustomValue(autoBDE3D882_var, 0, PointGetX(lv_point));
        UnitSetCustomValue(autoBDE3D882_var, 1, PointGetY(lv_point));
        UnitGroupRemove(gv_zergEncircleGroupRight, autoBDE3D882_var);
        UnitGroupAdd(lv_unitGroup, autoBDE3D882_var);
    }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:3601

        if ((RandomInt(0, 1) == 0)) {
            lv_unit = UnitGroupRandomUnit(gv_zergEncircleGroupLeft, c_unitCountAlive);
            UnitGroupRemove(gv_zergEncircleGroupLeft, lv_unit);
            UnitGroupAdd(gv_zergEncircleGroupRight, lv_unit);
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tzeratul01.sc2map/MapScript.galaxy:3606

        else {
            lv_unit = UnitGroupRandomUnit(gv_zergEncircleGroupRight, c_unitCountAlive);
            UnitGroupRemove(gv_zergEncircleGroupRight, lv_unit);
            UnitGroupAdd(gv_zergEncircleGroupLeft, lv_unit);
        }

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

        lv_target = UnitGroupRandomUnit(lv_gravitonTargets, c_unitCountAlive);
        if ((lv_target != null)) {
            UnitGroupRemove(lv_gravitonTargets, lv_target);
            libNtve_gf_AICast(gv_hybridPhysical, OrderTargetingUnit(AbilityCommand("GravitonPrison", 0), lv_target));
            Wait(0.6, c_timeGame);

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

        lv_target = UnitGroupRandomUnit(lv_plasmaTargets, c_unitCountAlive);
        if ((lv_target != null)) {
            UnitGroupRemove(lv_plasmaTargets, lv_target);
            libNtve_gf_AICast(gv_hybridPhysical, OrderTargetingUnit(AbilityCommand("HybridCPlasmaBlast", 0), lv_target));
            Wait(2.5, c_timeGame);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tzeratul04.sc2map/MapScript.galaxy:3207

        if (auto2349CB4A_var == null) { break; }
        AIRemoveUnitFromAnyWaves(auto2349CB4A_var);
        UnitGroupRemove(gv_gGWavesUnitGroup, auto2349CB4A_var);
    }
    autoD69B4807_g = UnitGroup("Ultralisk", c_playerAny, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tzeratul04.sc2map/MapScript.galaxy:3215

        if (autoD69B4807_var == null) { break; }
        AIRemoveUnitFromAnyWaves(autoD69B4807_var);
        UnitGroupRemove(gv_gGWavesUnitGroup, autoD69B4807_var);
    }
    auto1A6B2BE7_g = UnitGroup("Roach", c_playerAny, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tzeratul04.sc2map/MapScript.galaxy:3223

        if (auto1A6B2BE7_var == null) { break; }
        AIRemoveUnitFromAnyWaves(auto1A6B2BE7_var);
        UnitGroupRemove(gv_gGWavesUnitGroup, auto1A6B2BE7_var);
    }
    autoDE45E3C3_g = UnitGroup("HybridDestroyer", c_playerAny, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tzeratul04.sc2map/MapScript.galaxy:3231

        if (autoDE45E3C3_var == null) { break; }
        AIRemoveUnitFromAnyWaves(autoDE45E3C3_var);
        UnitGroupRemove(gv_gGWavesUnitGroup, autoDE45E3C3_var);
    }
    autoFCFC6CC1_g = UnitGroup("Baneling", c_playerAny, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tzeratul04.sc2map/MapScript.galaxy:3239

        if (autoFCFC6CC1_var == null) { break; }
        AIRemoveUnitFromAnyWaves(autoFCFC6CC1_var);
        UnitGroupRemove(gv_gGWavesUnitGroup, autoFCFC6CC1_var);
    }
    AIAttackWaveCancel(WaveLastCreated());

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/advancedcommand.sc2map/MapScript.galaxy:418

    for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
        UnitRemove(UnitGroupLoopCurrent());
        UnitGroupRemove(gv_enemiesUnits, UnitGroupLoopCurrent());
    }
    UnitGroupLoopEnd();

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/advancedcommand.sc2map/MapScript.galaxy:765


    gv_finalScore = (gv_finalScore + 1);
    UnitGroupRemove(gv_enemiesUnits, EventUnit());
    TriggerExecute(gt_ObjectiveKillUpdate, true, false);
    return true;

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/economy.sc2map/MapScript.galaxy:624

    for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
        UnitRemove(UnitGroupLoopCurrent());
        UnitGroupRemove(gv_playerUnits, UnitGroupLoopCurrent());
    }
    UnitGroupLoopEnd();

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/economy.sc2map/MapScript.galaxy:631

    for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
        UnitRemove(UnitGroupLoopCurrent());
        UnitGroupRemove(gv_playerUnits, UnitGroupLoopCurrent());
    }
    UnitGroupLoopEnd();