# Units In Unit Group Within Region

Grammar — Units in group|Unit Group within region, with at most count
FlagsNative | Function

Returns a unit group that contains units that are in a certain region from another unit group.

# Arguments

  • unitgroup — Group
  • region — Region
  • int — Count

Returns — unitgroup

native unitgroup UnitGroupFilterRegion(
	unitgroup g,
	region r,
	int maxCount,
);

Category: Unit Group / Useful Unit Groups

# Examples

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

    // Automatic Variable Declarations
    // Implementation
    while (!((UnitGroupCount(UnitGroupFilterRegion(gv_colonistsOnTheMove, lp_region, 0), c_unitCountAlive) > 0))) {
        Wait(0.1, c_timeGame);
    }

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

    while (true) {
        lv_fleetSize = UnitGroupCount(lp_fLEET, c_unitCountAlive);
        if ((UnitGroupCount(lp_fLEET, c_unitCountAlive) > 0) && (UnitGroupCount(UnitGroupFilterRegion(lp_fLEET, lp_tARGET, 0), c_unitCountAlive) != lv_fleetSize)) {
            UnitGroupIssueOrder(lp_fLEET, OrderTargetingPoint(AbilityCommand("move", 0), RegionGetCenter(lp_tARGET)), c_orderQueueAddToEnd);
            Wait(30.0, c_timeGame);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner05s.sc2map/MapScript.galaxy:2265

    TriggerEnable(TriggerGetCurrent(), false);
    UnitIssueOrder(UnitFromId(698), OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(739)), c_orderQueueReplace);
    autoCB026C0A_g = UnitGroupFilterRegion(UnitGroup(null, gv_p02_DOMINION, RegionFromId(3), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), RegionFromId(3), 0);
    autoCB026C0A_u = UnitGroupCount(autoCB026C0A_g, c_unitCountAll);
    for (;; autoCB026C0A_u -= 1) {

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner05s.sc2map/MapScript.galaxy:2811

    }

    auto82494D70_g = UnitGroupFilterRegion(UnitGroup(null, c_playerAny, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), RegionPlayableMap(), 0);
    auto82494D70_u = UnitGroupCount(auto82494D70_g, c_unitCountAll);
    for (;; auto82494D70_u -= 1) {

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner05s.sc2map/MapScript.galaxy:2823

    UnitSetState(gv_warbot, c_unitStateHighlightable, true);
    UnitSetState(gv_warbot, c_unitStateStatusBar, true);
    auto2D28BE19_g = UnitGroupFilterRegion(UnitGroup(null, gv_p07_NEUTRAL, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterRobotic) | (1 << c_targetFilterMechanical) | (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), RegionPlayableMap(), 0);
    auto2D28BE19_u = UnitGroupCount(auto2D28BE19_g, c_unitCountAll);
    for (;; auto2D28BE19_u -= 1) {

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner05s.sc2map/MapScript.galaxy:3078

    libNtve_gf_HideGameUI(false, PlayerGroupAll());
    libNtve_gf_StoreUnitSelection(gv_p01_USER, libNtve_ge_UnitSelectionStoreOption_DoNotClearUnitSelection);
    autoC1CCDDDD_g = UnitGroupFilterRegion(UnitGroup(null, c_playerAny, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), RegionPlayableMap(), 0);
    autoC1CCDDDD_u = UnitGroupCount(autoC1CCDDDD_g, c_unitCountAll);
    for (;; autoC1CCDDDD_u -= 1) {

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner05s.sc2map/MapScript.galaxy:3979

    UIAlertClear(gv_p01_USER);
    TransmissionClearAll();
    autoA9DE0D84_g = UnitGroupFilterRegion(UnitGroup(null, c_playerAny, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), RegionPlayableMap(), 0);
    autoA9DE0D84_u = UnitGroupCount(autoA9DE0D84_g, c_unitCountAll);
    for (;; autoA9DE0D84_u -= 1) {

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner05s.sc2map/MapScript.galaxy:4795

    gv_computerInUse = true;
    TransmissionClearAll();
    auto566A582C_g = UnitGroupFilterRegion(UnitGroup(null, c_playerAny, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), RegionPlayableMap(), 0);
    auto566A582C_u = UnitGroupCount(auto566A582C_g, c_unitCountAll);
    for (;; auto566A582C_u -= 1) {

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner05s.sc2map/MapScript.galaxy:5038

    TransmissionClearAll();
    libCamp_gf_SetAllSoundChannelVolumesCampaign(libNtve_ge_VolumeChannelMode_Game);
    auto18999A7B_g = UnitGroupFilterRegion(UnitGroup(null, c_playerAny, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), RegionPlayableMap(), 0);
    auto18999A7B_u = UnitGroupCount(auto18999A7B_g, c_unitCountAll);
    for (;; auto18999A7B_u -= 1) {

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner05s.sc2map/MapScript.galaxy:5237

    gv_computerInUse = true;
    TransmissionClearAll();
    autoBBC4CB69_g = UnitGroupFilterRegion(UnitGroup(null, c_playerAny, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), RegionPlayableMap(), 0);
    autoBBC4CB69_u = UnitGroupCount(autoBBC4CB69_g, c_unitCountAll);
    for (;; autoBBC4CB69_u -= 1) {

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner05s.sc2map/MapScript.galaxy:5727

    SoundPlay(gv_soundTerminalButtonPush, PlayerGroupAll(), 100.0, 0.0);
    libNtve_gf_HideGameUI(false, PlayerGroupAll());
    auto2E39B59B_g = UnitGroupFilterRegion(UnitGroup(null, c_playerAny, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), RegionPlayableMap(), 0);
    auto2E39B59B_u = UnitGroupCount(auto2E39B59B_g, c_unitCountAll);
    for (;; auto2E39B59B_u -= 1) {

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner05s.sc2map/MapScript.galaxy:11135

    }

    auto0A4F3B12_g = UnitGroupFilterRegion(UnitGroup(null, gv_p02_DOMINION, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), RegionPlayableMap(), 0);
    auto0A4F3B12_u = UnitGroupCount(auto0A4F3B12_g, c_unitCountAll);
    for (;; auto0A4F3B12_u -= 1) {

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

    UnitPauseAll(true);
    gv_midHiddenUnitGroup = UnitGroup(null, gv_p1_USER, RegionEntireMap(), UnitFilter(0, 0, 0, 0), 0);
    libNtve_gf_AddUnitGroupToUnitGroup(UnitGroupFilterRegion(UnitGroup(null, gv_p2_NE_PROTOSSMiddle, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), RegionPlayableMap(), 0), gv_midHiddenUnitGroup);
    libNtve_gf_AddUnitGroupToUnitGroup(UnitGroupFilterRegion(UnitGroup(null, gv_p4_SE_PROTOSSRight, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), RegionPlayableMap(), 0), gv_midHiddenUnitGroup);
    libNtve_gf_AddUnitGroupToUnitGroup(UnitGroupFilterRegion(UnitGroup(null, gv_p5_NW_PROTOSSLeft, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), RegionPlayableMap(), 0), gv_midHiddenUnitGroup);

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

    gv_midHiddenUnitGroup = UnitGroup(null, gv_p1_USER, RegionEntireMap(), UnitFilter(0, 0, 0, 0), 0);
    libNtve_gf_AddUnitGroupToUnitGroup(UnitGroupFilterRegion(UnitGroup(null, gv_p2_NE_PROTOSSMiddle, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), RegionPlayableMap(), 0), gv_midHiddenUnitGroup);
    libNtve_gf_AddUnitGroupToUnitGroup(UnitGroupFilterRegion(UnitGroup(null, gv_p4_SE_PROTOSSRight, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), RegionPlayableMap(), 0), gv_midHiddenUnitGroup);
    libNtve_gf_AddUnitGroupToUnitGroup(UnitGroupFilterRegion(UnitGroup(null, gv_p5_NW_PROTOSSLeft, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), RegionPlayableMap(), 0), gv_midHiddenUnitGroup);
    libNtve_gf_AddUnitGroupToUnitGroup(UnitGroupFilterRegion(UnitGroup(null, gv_p6_PROTOSSAir, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), RegionPlayableMap(), 0), gv_midHiddenUnitGroup);

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

    libNtve_gf_AddUnitGroupToUnitGroup(UnitGroupFilterRegion(UnitGroup(null, gv_p2_NE_PROTOSSMiddle, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), RegionPlayableMap(), 0), gv_midHiddenUnitGroup);
    libNtve_gf_AddUnitGroupToUnitGroup(UnitGroupFilterRegion(UnitGroup(null, gv_p4_SE_PROTOSSRight, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), RegionPlayableMap(), 0), gv_midHiddenUnitGroup);
    libNtve_gf_AddUnitGroupToUnitGroup(UnitGroupFilterRegion(UnitGroup(null, gv_p5_NW_PROTOSSLeft, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), RegionPlayableMap(), 0), gv_midHiddenUnitGroup);
    libNtve_gf_AddUnitGroupToUnitGroup(UnitGroupFilterRegion(UnitGroup(null, gv_p6_PROTOSSAir, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), RegionPlayableMap(), 0), gv_midHiddenUnitGroup);
    UnitGroupRemove(gv_midHiddenUnitGroup, gv_tHEONEDOOR);

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

    libNtve_gf_AddUnitGroupToUnitGroup(UnitGroupFilterRegion(UnitGroup(null, gv_p4_SE_PROTOSSRight, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), RegionPlayableMap(), 0), gv_midHiddenUnitGroup);
    libNtve_gf_AddUnitGroupToUnitGroup(UnitGroupFilterRegion(UnitGroup(null, gv_p5_NW_PROTOSSLeft, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), RegionPlayableMap(), 0), gv_midHiddenUnitGroup);
    libNtve_gf_AddUnitGroupToUnitGroup(UnitGroupFilterRegion(UnitGroup(null, gv_p6_PROTOSSAir, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), RegionPlayableMap(), 0), gv_midHiddenUnitGroup);
    UnitGroupRemove(gv_midHiddenUnitGroup, gv_tHEONEDOOR);
    libNtve_gf_ShareVisionofUnit(gv_tHEONEDOOR, true, gv_p7_ABANDONED_BASE);

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


    // Implementation
    lv_targets = (lv_targets + UnitGroupCount(UnitGroupFilterRegion(gv_moebiusTargets, RegionFromId(53), 1), c_unitCountAlive));
    lv_targets = (lv_targets + UnitGroupCount(UnitGroupFilterRegion(gv_moebiusTargets, RegionFromId(54), 1), c_unitCountAlive));
    lv_targets = (lv_targets + UnitGroupCount(UnitGroupFilterRegion(gv_moebiusTargets, RegionFromId(5), 1), c_unitCountAlive));

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

    // Implementation
    lv_targets = (lv_targets + UnitGroupCount(UnitGroupFilterRegion(gv_moebiusTargets, RegionFromId(53), 1), c_unitCountAlive));
    lv_targets = (lv_targets + UnitGroupCount(UnitGroupFilterRegion(gv_moebiusTargets, RegionFromId(54), 1), c_unitCountAlive));
    lv_targets = (lv_targets + UnitGroupCount(UnitGroupFilterRegion(gv_moebiusTargets, RegionFromId(5), 1), c_unitCountAlive));
    if ((UnitIsAlive(gv_sITE_1_BUILDING) == true)) {

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

    lv_targets = (lv_targets + UnitGroupCount(UnitGroupFilterRegion(gv_moebiusTargets, RegionFromId(53), 1), c_unitCountAlive));
    lv_targets = (lv_targets + UnitGroupCount(UnitGroupFilterRegion(gv_moebiusTargets, RegionFromId(54), 1), c_unitCountAlive));
    lv_targets = (lv_targets + UnitGroupCount(UnitGroupFilterRegion(gv_moebiusTargets, RegionFromId(5), 1), c_unitCountAlive));
    if ((UnitIsAlive(gv_sITE_1_BUILDING) == true)) {
        return lv_targets;

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

    }

    lv_targets = (lv_targets + UnitGroupCount(UnitGroupFilterRegion(gv_moebiusTargets, RegionFromId(55), 1), c_unitCountAlive));
    lv_targets = (lv_targets + UnitGroupCount(UnitGroupFilterRegion(gv_moebiusTargets, RegionFromId(26), 1), c_unitCountAlive));
    lv_targets = (lv_targets + UnitGroupCount(UnitGroupFilterRegion(gv_moebiusTargets, RegionFromId(37), 1), c_unitCountAlive));

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


    lv_targets = (lv_targets + UnitGroupCount(UnitGroupFilterRegion(gv_moebiusTargets, RegionFromId(55), 1), c_unitCountAlive));
    lv_targets = (lv_targets + UnitGroupCount(UnitGroupFilterRegion(gv_moebiusTargets, RegionFromId(26), 1), c_unitCountAlive));
    lv_targets = (lv_targets + UnitGroupCount(UnitGroupFilterRegion(gv_moebiusTargets, RegionFromId(37), 1), c_unitCountAlive));
    lv_targets = (lv_targets + UnitGroupCount(UnitGroupFilterRegion(gv_moebiusTargets, RegionFromId(58), 1), c_unitCountAlive));

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

    lv_targets = (lv_targets + UnitGroupCount(UnitGroupFilterRegion(gv_moebiusTargets, RegionFromId(55), 1), c_unitCountAlive));
    lv_targets = (lv_targets + UnitGroupCount(UnitGroupFilterRegion(gv_moebiusTargets, RegionFromId(26), 1), c_unitCountAlive));
    lv_targets = (lv_targets + UnitGroupCount(UnitGroupFilterRegion(gv_moebiusTargets, RegionFromId(37), 1), c_unitCountAlive));
    lv_targets = (lv_targets + UnitGroupCount(UnitGroupFilterRegion(gv_moebiusTargets, RegionFromId(58), 1), c_unitCountAlive));
    lv_targets = (lv_targets + UnitGroupCount(UnitGroupFilterRegion(gv_moebiusTargets, RegionFromId(56), 1), c_unitCountAlive));

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

    lv_targets = (lv_targets + UnitGroupCount(UnitGroupFilterRegion(gv_moebiusTargets, RegionFromId(26), 1), c_unitCountAlive));
    lv_targets = (lv_targets + UnitGroupCount(UnitGroupFilterRegion(gv_moebiusTargets, RegionFromId(37), 1), c_unitCountAlive));
    lv_targets = (lv_targets + UnitGroupCount(UnitGroupFilterRegion(gv_moebiusTargets, RegionFromId(58), 1), c_unitCountAlive));
    lv_targets = (lv_targets + UnitGroupCount(UnitGroupFilterRegion(gv_moebiusTargets, RegionFromId(56), 1), c_unitCountAlive));
    if ((UnitIsAlive(gv_sITE_2_BUILDING) == true)) {

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

    lv_targets = (lv_targets + UnitGroupCount(UnitGroupFilterRegion(gv_moebiusTargets, RegionFromId(37), 1), c_unitCountAlive));
    lv_targets = (lv_targets + UnitGroupCount(UnitGroupFilterRegion(gv_moebiusTargets, RegionFromId(58), 1), c_unitCountAlive));
    lv_targets = (lv_targets + UnitGroupCount(UnitGroupFilterRegion(gv_moebiusTargets, RegionFromId(56), 1), c_unitCountAlive));
    if ((UnitIsAlive(gv_sITE_2_BUILDING) == true)) {
        return lv_targets;

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

    }

    lv_targets = (lv_targets + UnitGroupCount(UnitGroupFilterRegion(gv_moebiusTargets, RegionFromId(11), 1), c_unitCountAlive));
    lv_targets = (lv_targets + UnitGroupCount(UnitGroupFilterRegion(gv_moebiusTargets, RegionFromId(59), 1), c_unitCountAlive));
    lv_targets = (lv_targets + UnitGroupCount(UnitGroupFilterRegion(gv_moebiusTargets, RegionFromId(60), 1), c_unitCountAlive));

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


    lv_targets = (lv_targets + UnitGroupCount(UnitGroupFilterRegion(gv_moebiusTargets, RegionFromId(11), 1), c_unitCountAlive));
    lv_targets = (lv_targets + UnitGroupCount(UnitGroupFilterRegion(gv_moebiusTargets, RegionFromId(59), 1), c_unitCountAlive));
    lv_targets = (lv_targets + UnitGroupCount(UnitGroupFilterRegion(gv_moebiusTargets, RegionFromId(60), 1), c_unitCountAlive));
    lv_targets = (lv_targets + UnitGroupCount(UnitGroupFilterRegion(gv_moebiusTargets, RegionFromId(57), 1), c_unitCountAlive));

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


    // Implementation
    autoD59259D7_g = UnitGroupFilterRegion(lp_gROUP, lp_rEGION, 0);
    autoD59259D7_u = UnitGroupCount(autoD59259D7_g, c_unitCountAll);
    for (;; autoD59259D7_u -= 1) {

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/protosscombat.sc2map/MapScript.galaxy:307

    // Implementation
    UnitClearSelection(gv_pLAYER_USER);
    UnitGroupLoopBegin(UnitGroupFilterRegion(gv_playerUnits, RegionEntireMap(), 0));
    for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
        libNtve_gf_ShowHideUnit(UnitGroupLoopCurrent(), false);

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/protosscombat.sc2map/MapScript.galaxy:329

    }
    UnitGroupLoopEnd();
    UnitGroupLoopBegin(UnitGroupFilterRegion(gv_repulserFields, RegionEntireMap(), 0));
    for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
        libNtve_gf_PauseUnit(UnitGroupLoopCurrent(), false);

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/protosscombat.sc2map/MapScript.galaxy:334

    }
    UnitGroupLoopEnd();
    UnitGroupLoopBegin(UnitGroupFilterRegion(gv_attackers, RegionEntireMap(), 0));
    for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
        UnitBehaviorRemovePlayer(UnitGroupLoopCurrent(), "Untargetable", gv_pLAYER_COMPUTER1, 1);

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/protosscombat.sc2map/MapScript.galaxy:2206

    gv_ready = true;
    TimerStart(gv_textTimer, 0.0, false, c_timeReal);
    UnitGroupLoopBegin(UnitGroupFilterRegion(gv_playerUnits, RegionFromId(50), 0));
    for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
        UnitGroupAdd(gv_playerUnitsArea1, UnitGroupLoopCurrent());

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/protosscombat.sc2map/MapScript.galaxy:2211

    }
    UnitGroupLoopEnd();
    UnitGroupLoopBegin(UnitGroupFilterRegion(gv_playerUnits, RegionFromId(51), 0));
    for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
        UnitGroupAdd(gv_playerUnitsArea2, UnitGroupLoopCurrent());

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/protosscombat.sc2map/MapScript.galaxy:2216

    }
    UnitGroupLoopEnd();
    UnitGroupLoopBegin(UnitGroupFilterRegion(gv_playerUnits, RegionFromId(49), 0));
    for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
        UnitGroupAdd(gv_playerUnitsArea3, UnitGroupLoopCurrent());

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/terrancombat.sc2map/MapScript.galaxy:276

    // Implementation
    UnitClearSelection(gv_pLAYER_USER);
    UnitGroupLoopBegin(UnitGroupFilterRegion(gv_playerUnits, RegionEntireMap(), 0));
    for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
        libNtve_gf_ShowHideUnit(UnitGroupLoopCurrent(), false);

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/terrancombat.sc2map/MapScript.galaxy:298

    }
    UnitGroupLoopEnd();
    UnitGroupLoopBegin(UnitGroupFilterRegion(gv_repulserFields, RegionEntireMap(), 0));
    for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
        libNtve_gf_PauseUnit(UnitGroupLoopCurrent(), false);

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/terrancombat.sc2map/MapScript.galaxy:303

    }
    UnitGroupLoopEnd();
    UnitGroupLoopBegin(UnitGroupFilterRegion(gv_attackers, RegionEntireMap(), 0));
    for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
        UnitBehaviorRemovePlayer(UnitGroupLoopCurrent(), "Untargetable", gv_pLAYER_COMPUTER1, 1);

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/terrancombat.sc2map/MapScript.galaxy:2025

    }
    libNtve_gf_HideScreenButton(false, gv_readyButton);
    UnitGroupLoopBegin(UnitGroupFilterRegion(gv_playerUnits, RegionFromId(50), 0));
    for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
        UnitGroupAdd(gv_playerUnitsArea1, UnitGroupLoopCurrent());

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/terrancombat.sc2map/MapScript.galaxy:2033

    }
    UnitGroupLoopEnd();
    UnitGroupLoopBegin(UnitGroupFilterRegion(gv_playerUnits, RegionFromId(51), 0));
    for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
        UnitGroupAdd(gv_playerUnitsArea2, UnitGroupLoopCurrent());

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/terrancombat.sc2map/MapScript.galaxy:2041

    }
    UnitGroupLoopEnd();
    UnitGroupLoopBegin(UnitGroupFilterRegion(gv_playerUnits, RegionFromId(49), 0));
    for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
        UnitGroupAdd(gv_playerUnitsArea3, UnitGroupLoopCurrent());

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/zergcombat.sc2map/MapScript.galaxy:289

    // Implementation
    UnitClearSelection(gv_pLAYER_USER);
    UnitGroupLoopBegin(UnitGroupFilterRegion(gv_playerUnits, RegionEntireMap(), 0));
    while (!UnitGroupLoopDone()) {
        libNtve_gf_ShowHideUnit(UnitGroupLoopCurrent(), false);

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/zergcombat.sc2map/MapScript.galaxy:326

    }
    UnitGroupLoopEnd();
    UnitGroupLoopBegin(UnitGroupFilterRegion(gv_repulserFields, RegionEntireMap(), 0));
    while (!UnitGroupLoopDone()) {
        libNtve_gf_PauseUnit(UnitGroupLoopCurrent(), false);

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/zergcombat.sc2map/MapScript.galaxy:332

    }
    UnitGroupLoopEnd();
    UnitGroupLoopBegin(UnitGroupFilterRegion(gv_attackers, RegionEntireMap(), 0));
    while (!UnitGroupLoopDone()) {
        UnitBehaviorRemovePlayer(UnitGroupLoopCurrent(), "Untargetable", gv_pLAYER_COMPUTER1, 1);

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/zergcombat.sc2map/MapScript.galaxy:2113

    }
    libNtve_gf_HideScreenButton(false, gv_readyButton);
    UnitGroupLoopBegin(UnitGroupFilterRegion(gv_playerUnits, RegionFromId(50), 0));
    while (!UnitGroupLoopDone()) {
        UnitGroupAdd(gv_playerUnitsArea1, UnitGroupLoopCurrent());

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/zergcombat.sc2map/MapScript.galaxy:2122

    }
    UnitGroupLoopEnd();
    UnitGroupLoopBegin(UnitGroupFilterRegion(gv_playerUnits, RegionFromId(51), 0));
    while (!UnitGroupLoopDone()) {
        UnitGroupAdd(gv_playerUnitsArea2, UnitGroupLoopCurrent());

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/zergcombat.sc2map/MapScript.galaxy:2131

    }
    UnitGroupLoopEnd();
    UnitGroupLoopBegin(UnitGroupFilterRegion(gv_playerUnits, RegionFromId(49), 0));
    while (!UnitGroupLoopDone()) {
        UnitGroupAdd(gv_playerUnitsArea3, UnitGroupLoopCurrent());

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/zergcombat.sc2map/MapScript.galaxy:2143

    gv_ready = true;
    TimerStart(gv_textTimer, 0.0, false, c_timeReal);
    UnitGroupLoopBegin(UnitGroupFilterRegion(gv_playerUnits, RegionFromId(50), 0));
    while (!UnitGroupLoopDone()) {
        UnitGroupAdd(gv_playerUnitsArea1, UnitGroupLoopCurrent());

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/zergcombat.sc2map/MapScript.galaxy:2149

    }
    UnitGroupLoopEnd();
    UnitGroupLoopBegin(UnitGroupFilterRegion(gv_playerUnits, RegionFromId(51), 0));
    while (!UnitGroupLoopDone()) {
        UnitGroupAdd(gv_playerUnitsArea2, UnitGroupLoopCurrent());

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/zergcombat.sc2map/MapScript.galaxy:2155

    }
    UnitGroupLoopEnd();
    UnitGroupLoopBegin(UnitGroupFilterRegion(gv_playerUnits, RegionFromId(49), 0));
    while (!UnitGroupLoopDone()) {
        UnitGroupAdd(gv_playerUnitsArea3, UnitGroupLoopCurrent());

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson01.sc2mapMapScript.galaxy:364

    // Automatic Variable Declarations
    // Implementation
    while (!((UnitGroupCount(UnitGroupFilterRegion(gv_colonistsOnTheMove, lp_region, 0), c_unitCountAlive) > 0))) {
        Wait(0.1, c_timeGame);
    }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson03a.sc2mapMapScript.galaxy:304

    while (true) {
        lv_fleetSize = UnitGroupCount(lp_fLEET, c_unitCountAlive);
        if ((UnitGroupCount(lp_fLEET, c_unitCountAlive) > 0) && (UnitGroupCount(UnitGroupFilterRegion(lp_fLEET, lp_tARGET, 0), c_unitCountAlive) != lv_fleetSize)) {
            UnitGroupIssueOrder(lp_fLEET, OrderTargetingPoint(AbilityCommand("move", 0), RegionGetCenter(lp_tARGET)), c_orderQueueAddToEnd);
            Wait(30.0, c_timeGame);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner05s.sc2mapMapScript.galaxy:2265

    TriggerEnable(TriggerGetCurrent(), false);
    UnitIssueOrder(UnitFromId(698), OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(739)), c_orderQueueReplace);
    autoCB026C0A_g = UnitGroupFilterRegion(UnitGroup(null, gv_p02_DOMINION, RegionFromId(3), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), RegionFromId(3), 0);
    autoCB026C0A_u = UnitGroupCount(autoCB026C0A_g, c_unitCountAll);
    for (;; autoCB026C0A_u -= 1) {

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner05s.sc2mapMapScript.galaxy:2811

    }

    auto82494D70_g = UnitGroupFilterRegion(UnitGroup(null, c_playerAny, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), RegionPlayableMap(), 0);
    auto82494D70_u = UnitGroupCount(auto82494D70_g, c_unitCountAll);
    for (;; auto82494D70_u -= 1) {

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner05s.sc2mapMapScript.galaxy:2823

    UnitSetState(gv_warbot, c_unitStateHighlightable, true);
    UnitSetState(gv_warbot, c_unitStateStatusBar, true);
    auto2D28BE19_g = UnitGroupFilterRegion(UnitGroup(null, gv_p07_NEUTRAL, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterRobotic) | (1 << c_targetFilterMechanical) | (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), RegionPlayableMap(), 0);
    auto2D28BE19_u = UnitGroupCount(auto2D28BE19_g, c_unitCountAll);
    for (;; auto2D28BE19_u -= 1) {

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner05s.sc2mapMapScript.galaxy:3078

    libNtve_gf_HideGameUI(false, PlayerGroupAll());
    libNtve_gf_StoreUnitSelection(gv_p01_USER, libNtve_ge_UnitSelectionStoreOption_DoNotClearUnitSelection);
    autoC1CCDDDD_g = UnitGroupFilterRegion(UnitGroup(null, c_playerAny, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), RegionPlayableMap(), 0);
    autoC1CCDDDD_u = UnitGroupCount(autoC1CCDDDD_g, c_unitCountAll);
    for (;; autoC1CCDDDD_u -= 1) {

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner05s.sc2mapMapScript.galaxy:3979

    UIAlertClear(gv_p01_USER);
    TransmissionClearAll();
    autoA9DE0D84_g = UnitGroupFilterRegion(UnitGroup(null, c_playerAny, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), RegionPlayableMap(), 0);
    autoA9DE0D84_u = UnitGroupCount(autoA9DE0D84_g, c_unitCountAll);
    for (;; autoA9DE0D84_u -= 1) {

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner05s.sc2mapMapScript.galaxy:4795

    gv_computerInUse = true;
    TransmissionClearAll();
    auto566A582C_g = UnitGroupFilterRegion(UnitGroup(null, c_playerAny, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), RegionPlayableMap(), 0);
    auto566A582C_u = UnitGroupCount(auto566A582C_g, c_unitCountAll);
    for (;; auto566A582C_u -= 1) {

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner05s.sc2mapMapScript.galaxy:5038

    TransmissionClearAll();
    libCamp_gf_SetAllSoundChannelVolumesCampaign(libNtve_ge_VolumeChannelMode_Game);
    auto18999A7B_g = UnitGroupFilterRegion(UnitGroup(null, c_playerAny, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), RegionPlayableMap(), 0);
    auto18999A7B_u = UnitGroupCount(auto18999A7B_g, c_unitCountAll);
    for (;; auto18999A7B_u -= 1) {

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner05s.sc2mapMapScript.galaxy:5237

    gv_computerInUse = true;
    TransmissionClearAll();
    autoBBC4CB69_g = UnitGroupFilterRegion(UnitGroup(null, c_playerAny, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), RegionPlayableMap(), 0);
    autoBBC4CB69_u = UnitGroupCount(autoBBC4CB69_g, c_unitCountAll);
    for (;; autoBBC4CB69_u -= 1) {

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner05s.sc2mapMapScript.galaxy:5727

    SoundPlay(gv_soundTerminalButtonPush, PlayerGroupAll(), 100.0, 0.0);
    libNtve_gf_HideGameUI(false, PlayerGroupAll());
    auto2E39B59B_g = UnitGroupFilterRegion(UnitGroup(null, c_playerAny, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), RegionPlayableMap(), 0);
    auto2E39B59B_u = UnitGroupCount(auto2E39B59B_g, c_unitCountAll);
    for (;; auto2E39B59B_u -= 1) {

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner05s.sc2mapMapScript.galaxy:11135

    }

    auto0A4F3B12_g = UnitGroupFilterRegion(UnitGroup(null, gv_p02_DOMINION, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), RegionPlayableMap(), 0);
    auto0A4F3B12_u = UnitGroupCount(auto0A4F3B12_g, c_unitCountAll);
    for (;; auto0A4F3B12_u -= 1) {

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus02.sc2mapMapScript.galaxy:5172

    UnitPauseAll(true);
    gv_midHiddenUnitGroup = UnitGroup(null, gv_p1_USER, RegionEntireMap(), UnitFilter(0, 0, 0, 0), 0);
    libNtve_gf_AddUnitGroupToUnitGroup(UnitGroupFilterRegion(UnitGroup(null, gv_p2_NE_PROTOSSMiddle, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), RegionPlayableMap(), 0), gv_midHiddenUnitGroup);
    libNtve_gf_AddUnitGroupToUnitGroup(UnitGroupFilterRegion(UnitGroup(null, gv_p4_SE_PROTOSSRight, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), RegionPlayableMap(), 0), gv_midHiddenUnitGroup);
    libNtve_gf_AddUnitGroupToUnitGroup(UnitGroupFilterRegion(UnitGroup(null, gv_p5_NW_PROTOSSLeft, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), RegionPlayableMap(), 0), gv_midHiddenUnitGroup);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus02.sc2mapMapScript.galaxy:5173

    gv_midHiddenUnitGroup = UnitGroup(null, gv_p1_USER, RegionEntireMap(), UnitFilter(0, 0, 0, 0), 0);
    libNtve_gf_AddUnitGroupToUnitGroup(UnitGroupFilterRegion(UnitGroup(null, gv_p2_NE_PROTOSSMiddle, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), RegionPlayableMap(), 0), gv_midHiddenUnitGroup);
    libNtve_gf_AddUnitGroupToUnitGroup(UnitGroupFilterRegion(UnitGroup(null, gv_p4_SE_PROTOSSRight, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), RegionPlayableMap(), 0), gv_midHiddenUnitGroup);
    libNtve_gf_AddUnitGroupToUnitGroup(UnitGroupFilterRegion(UnitGroup(null, gv_p5_NW_PROTOSSLeft, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), RegionPlayableMap(), 0), gv_midHiddenUnitGroup);
    libNtve_gf_AddUnitGroupToUnitGroup(UnitGroupFilterRegion(UnitGroup(null, gv_p6_PROTOSSAir, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), RegionPlayableMap(), 0), gv_midHiddenUnitGroup);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus02.sc2mapMapScript.galaxy:5174

    libNtve_gf_AddUnitGroupToUnitGroup(UnitGroupFilterRegion(UnitGroup(null, gv_p2_NE_PROTOSSMiddle, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), RegionPlayableMap(), 0), gv_midHiddenUnitGroup);
    libNtve_gf_AddUnitGroupToUnitGroup(UnitGroupFilterRegion(UnitGroup(null, gv_p4_SE_PROTOSSRight, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), RegionPlayableMap(), 0), gv_midHiddenUnitGroup);
    libNtve_gf_AddUnitGroupToUnitGroup(UnitGroupFilterRegion(UnitGroup(null, gv_p5_NW_PROTOSSLeft, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), RegionPlayableMap(), 0), gv_midHiddenUnitGroup);
    libNtve_gf_AddUnitGroupToUnitGroup(UnitGroupFilterRegion(UnitGroup(null, gv_p6_PROTOSSAir, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), RegionPlayableMap(), 0), gv_midHiddenUnitGroup);
    UnitGroupRemove(gv_midHiddenUnitGroup, gv_tHEONEDOOR);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus02.sc2mapMapScript.galaxy:5175

    libNtve_gf_AddUnitGroupToUnitGroup(UnitGroupFilterRegion(UnitGroup(null, gv_p4_SE_PROTOSSRight, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), RegionPlayableMap(), 0), gv_midHiddenUnitGroup);
    libNtve_gf_AddUnitGroupToUnitGroup(UnitGroupFilterRegion(UnitGroup(null, gv_p5_NW_PROTOSSLeft, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), RegionPlayableMap(), 0), gv_midHiddenUnitGroup);
    libNtve_gf_AddUnitGroupToUnitGroup(UnitGroupFilterRegion(UnitGroup(null, gv_p6_PROTOSSAir, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), RegionPlayableMap(), 0), gv_midHiddenUnitGroup);
    UnitGroupRemove(gv_midHiddenUnitGroup, gv_tHEONEDOOR);
    libNtve_gf_ShareVisionofUnit(gv_tHEONEDOOR, true, gv_p7_ABANDONED_BASE);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus03.sc2mapMapScript.galaxy:450


    // Implementation
    lv_targets = (lv_targets + UnitGroupCount(UnitGroupFilterRegion(gv_moebiusTargets, RegionFromId(53), 1), c_unitCountAlive));
    lv_targets = (lv_targets + UnitGroupCount(UnitGroupFilterRegion(gv_moebiusTargets, RegionFromId(54), 1), c_unitCountAlive));
    lv_targets = (lv_targets + UnitGroupCount(UnitGroupFilterRegion(gv_moebiusTargets, RegionFromId(5), 1), c_unitCountAlive));

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus03.sc2mapMapScript.galaxy:451

    // Implementation
    lv_targets = (lv_targets + UnitGroupCount(UnitGroupFilterRegion(gv_moebiusTargets, RegionFromId(53), 1), c_unitCountAlive));
    lv_targets = (lv_targets + UnitGroupCount(UnitGroupFilterRegion(gv_moebiusTargets, RegionFromId(54), 1), c_unitCountAlive));
    lv_targets = (lv_targets + UnitGroupCount(UnitGroupFilterRegion(gv_moebiusTargets, RegionFromId(5), 1), c_unitCountAlive));
    if ((UnitIsAlive(gv_sITE_1_BUILDING) == true)) {

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus03.sc2mapMapScript.galaxy:452

    lv_targets = (lv_targets + UnitGroupCount(UnitGroupFilterRegion(gv_moebiusTargets, RegionFromId(53), 1), c_unitCountAlive));
    lv_targets = (lv_targets + UnitGroupCount(UnitGroupFilterRegion(gv_moebiusTargets, RegionFromId(54), 1), c_unitCountAlive));
    lv_targets = (lv_targets + UnitGroupCount(UnitGroupFilterRegion(gv_moebiusTargets, RegionFromId(5), 1), c_unitCountAlive));
    if ((UnitIsAlive(gv_sITE_1_BUILDING) == true)) {
        return lv_targets;

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus03.sc2mapMapScript.galaxy:457

    }

    lv_targets = (lv_targets + UnitGroupCount(UnitGroupFilterRegion(gv_moebiusTargets, RegionFromId(55), 1), c_unitCountAlive));
    lv_targets = (lv_targets + UnitGroupCount(UnitGroupFilterRegion(gv_moebiusTargets, RegionFromId(26), 1), c_unitCountAlive));
    lv_targets = (lv_targets + UnitGroupCount(UnitGroupFilterRegion(gv_moebiusTargets, RegionFromId(37), 1), c_unitCountAlive));

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus03.sc2mapMapScript.galaxy:458


    lv_targets = (lv_targets + UnitGroupCount(UnitGroupFilterRegion(gv_moebiusTargets, RegionFromId(55), 1), c_unitCountAlive));
    lv_targets = (lv_targets + UnitGroupCount(UnitGroupFilterRegion(gv_moebiusTargets, RegionFromId(26), 1), c_unitCountAlive));
    lv_targets = (lv_targets + UnitGroupCount(UnitGroupFilterRegion(gv_moebiusTargets, RegionFromId(37), 1), c_unitCountAlive));
    lv_targets = (lv_targets + UnitGroupCount(UnitGroupFilterRegion(gv_moebiusTargets, RegionFromId(58), 1), c_unitCountAlive));

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus03.sc2mapMapScript.galaxy:459

    lv_targets = (lv_targets + UnitGroupCount(UnitGroupFilterRegion(gv_moebiusTargets, RegionFromId(55), 1), c_unitCountAlive));
    lv_targets = (lv_targets + UnitGroupCount(UnitGroupFilterRegion(gv_moebiusTargets, RegionFromId(26), 1), c_unitCountAlive));
    lv_targets = (lv_targets + UnitGroupCount(UnitGroupFilterRegion(gv_moebiusTargets, RegionFromId(37), 1), c_unitCountAlive));
    lv_targets = (lv_targets + UnitGroupCount(UnitGroupFilterRegion(gv_moebiusTargets, RegionFromId(58), 1), c_unitCountAlive));
    lv_targets = (lv_targets + UnitGroupCount(UnitGroupFilterRegion(gv_moebiusTargets, RegionFromId(56), 1), c_unitCountAlive));

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus03.sc2mapMapScript.galaxy:460

    lv_targets = (lv_targets + UnitGroupCount(UnitGroupFilterRegion(gv_moebiusTargets, RegionFromId(26), 1), c_unitCountAlive));
    lv_targets = (lv_targets + UnitGroupCount(UnitGroupFilterRegion(gv_moebiusTargets, RegionFromId(37), 1), c_unitCountAlive));
    lv_targets = (lv_targets + UnitGroupCount(UnitGroupFilterRegion(gv_moebiusTargets, RegionFromId(58), 1), c_unitCountAlive));
    lv_targets = (lv_targets + UnitGroupCount(UnitGroupFilterRegion(gv_moebiusTargets, RegionFromId(56), 1), c_unitCountAlive));
    if ((UnitIsAlive(gv_sITE_2_BUILDING) == true)) {

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus03.sc2mapMapScript.galaxy:461

    lv_targets = (lv_targets + UnitGroupCount(UnitGroupFilterRegion(gv_moebiusTargets, RegionFromId(37), 1), c_unitCountAlive));
    lv_targets = (lv_targets + UnitGroupCount(UnitGroupFilterRegion(gv_moebiusTargets, RegionFromId(58), 1), c_unitCountAlive));
    lv_targets = (lv_targets + UnitGroupCount(UnitGroupFilterRegion(gv_moebiusTargets, RegionFromId(56), 1), c_unitCountAlive));
    if ((UnitIsAlive(gv_sITE_2_BUILDING) == true)) {
        return lv_targets;

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttychus03.sc2mapMapScript.galaxy:466

    }

    lv_targets = (lv_targets + UnitGroupCount(UnitGroupFilterRegion(gv_moebiusTargets, RegionFromId(11), 1), c_unitCountAlive));
    lv_targets = (lv_targets + UnitGroupCount(UnitGroupFilterRegion(gv_moebiusTargets, RegionFromId(59), 1), c_unitCountAlive));
    lv_targets = (lv_targets + UnitGroupCount(UnitGroupFilterRegion(gv_moebiusTargets, RegionFromId(60), 1), c_unitCountAlive));

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


    lv_targets = (lv_targets + UnitGroupCount(UnitGroupFilterRegion(gv_moebiusTargets, RegionFromId(11), 1), c_unitCountAlive));
    lv_targets = (lv_targets + UnitGroupCount(UnitGroupFilterRegion(gv_moebiusTargets, RegionFromId(59), 1), c_unitCountAlive));
    lv_targets = (lv_targets + UnitGroupCount(UnitGroupFilterRegion(gv_moebiusTargets, RegionFromId(60), 1), c_unitCountAlive));
    lv_targets = (lv_targets + UnitGroupCount(UnitGroupFilterRegion(gv_moebiusTargets, RegionFromId(57), 1), c_unitCountAlive));

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian02b.sc2mapMapScript.galaxy:409


    // Implementation
    autoD59259D7_g = UnitGroupFilterRegion(lp_gROUP, lp_rEGION, 0);
    autoD59259D7_u = UnitGroupCount(autoD59259D7_g, c_unitCountAll);
    for (;; autoD59259D7_u -= 1) {

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/protosscombat.sc2mapMapScript.galaxy:307

    // Implementation
    UnitClearSelection(gv_pLAYER_USER);
    UnitGroupLoopBegin(UnitGroupFilterRegion(gv_playerUnits, RegionEntireMap(), 0));
    for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
        libNtve_gf_ShowHideUnit(UnitGroupLoopCurrent(), false);

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/protosscombat.sc2mapMapScript.galaxy:329

    }
    UnitGroupLoopEnd();
    UnitGroupLoopBegin(UnitGroupFilterRegion(gv_repulserFields, RegionEntireMap(), 0));
    for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
        libNtve_gf_PauseUnit(UnitGroupLoopCurrent(), false);

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/protosscombat.sc2mapMapScript.galaxy:334

    }
    UnitGroupLoopEnd();
    UnitGroupLoopBegin(UnitGroupFilterRegion(gv_attackers, RegionEntireMap(), 0));
    for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
        UnitBehaviorRemovePlayer(UnitGroupLoopCurrent(), "Untargetable", gv_pLAYER_COMPUTER1, 1);

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/protosscombat.sc2mapMapScript.galaxy:2206

    gv_ready = true;
    TimerStart(gv_textTimer, 0.0, false, c_timeReal);
    UnitGroupLoopBegin(UnitGroupFilterRegion(gv_playerUnits, RegionFromId(50), 0));
    for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
        UnitGroupAdd(gv_playerUnitsArea1, UnitGroupLoopCurrent());

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/protosscombat.sc2mapMapScript.galaxy:2211

    }
    UnitGroupLoopEnd();
    UnitGroupLoopBegin(UnitGroupFilterRegion(gv_playerUnits, RegionFromId(51), 0));
    for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
        UnitGroupAdd(gv_playerUnitsArea2, UnitGroupLoopCurrent());

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/protosscombat.sc2mapMapScript.galaxy:2216

    }
    UnitGroupLoopEnd();
    UnitGroupLoopBegin(UnitGroupFilterRegion(gv_playerUnits, RegionFromId(49), 0));
    for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
        UnitGroupAdd(gv_playerUnitsArea3, UnitGroupLoopCurrent());

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/terrancombat.sc2mapMapScript.galaxy:276

    // Implementation
    UnitClearSelection(gv_pLAYER_USER);
    UnitGroupLoopBegin(UnitGroupFilterRegion(gv_playerUnits, RegionEntireMap(), 0));
    for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
        libNtve_gf_ShowHideUnit(UnitGroupLoopCurrent(), false);

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/terrancombat.sc2mapMapScript.galaxy:298

    }
    UnitGroupLoopEnd();
    UnitGroupLoopBegin(UnitGroupFilterRegion(gv_repulserFields, RegionEntireMap(), 0));
    for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
        libNtve_gf_PauseUnit(UnitGroupLoopCurrent(), false);

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/terrancombat.sc2mapMapScript.galaxy:303

    }
    UnitGroupLoopEnd();
    UnitGroupLoopBegin(UnitGroupFilterRegion(gv_attackers, RegionEntireMap(), 0));
    for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
        UnitBehaviorRemovePlayer(UnitGroupLoopCurrent(), "Untargetable", gv_pLAYER_COMPUTER1, 1);

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/terrancombat.sc2mapMapScript.galaxy:2025

    }
    libNtve_gf_HideScreenButton(false, gv_readyButton);
    UnitGroupLoopBegin(UnitGroupFilterRegion(gv_playerUnits, RegionFromId(50), 0));
    for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
        UnitGroupAdd(gv_playerUnitsArea1, UnitGroupLoopCurrent());

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/terrancombat.sc2mapMapScript.galaxy:2033

    }
    UnitGroupLoopEnd();
    UnitGroupLoopBegin(UnitGroupFilterRegion(gv_playerUnits, RegionFromId(51), 0));
    for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
        UnitGroupAdd(gv_playerUnitsArea2, UnitGroupLoopCurrent());

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/terrancombat.sc2mapMapScript.galaxy:2041

    }
    UnitGroupLoopEnd();
    UnitGroupLoopBegin(UnitGroupFilterRegion(gv_playerUnits, RegionFromId(49), 0));
    for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
        UnitGroupAdd(gv_playerUnitsArea3, UnitGroupLoopCurrent());

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/zergcombat.sc2mapMapScript.galaxy:289

    // Implementation
    UnitClearSelection(gv_pLAYER_USER);
    UnitGroupLoopBegin(UnitGroupFilterRegion(gv_playerUnits, RegionEntireMap(), 0));
    while (!UnitGroupLoopDone()) {
        libNtve_gf_ShowHideUnit(UnitGroupLoopCurrent(), false);

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/zergcombat.sc2mapMapScript.galaxy:326

    }
    UnitGroupLoopEnd();
    UnitGroupLoopBegin(UnitGroupFilterRegion(gv_repulserFields, RegionEntireMap(), 0));
    while (!UnitGroupLoopDone()) {
        libNtve_gf_PauseUnit(UnitGroupLoopCurrent(), false);

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/zergcombat.sc2mapMapScript.galaxy:332

    }
    UnitGroupLoopEnd();
    UnitGroupLoopBegin(UnitGroupFilterRegion(gv_attackers, RegionEntireMap(), 0));
    while (!UnitGroupLoopDone()) {
        UnitBehaviorRemovePlayer(UnitGroupLoopCurrent(), "Untargetable", gv_pLAYER_COMPUTER1, 1);

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/zergcombat.sc2mapMapScript.galaxy:2113

    }
    libNtve_gf_HideScreenButton(false, gv_readyButton);
    UnitGroupLoopBegin(UnitGroupFilterRegion(gv_playerUnits, RegionFromId(50), 0));
    while (!UnitGroupLoopDone()) {
        UnitGroupAdd(gv_playerUnitsArea1, UnitGroupLoopCurrent());

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/zergcombat.sc2mapMapScript.galaxy:2122

    }
    UnitGroupLoopEnd();
    UnitGroupLoopBegin(UnitGroupFilterRegion(gv_playerUnits, RegionFromId(51), 0));
    while (!UnitGroupLoopDone()) {
        UnitGroupAdd(gv_playerUnitsArea2, UnitGroupLoopCurrent());

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/zergcombat.sc2mapMapScript.galaxy:2131

    }
    UnitGroupLoopEnd();
    UnitGroupLoopBegin(UnitGroupFilterRegion(gv_playerUnits, RegionFromId(49), 0));
    while (!UnitGroupLoopDone()) {
        UnitGroupAdd(gv_playerUnitsArea3, UnitGroupLoopCurrent());

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/zergcombat.sc2mapMapScript.galaxy:2143

    gv_ready = true;
    TimerStart(gv_textTimer, 0.0, false, c_timeReal);
    UnitGroupLoopBegin(UnitGroupFilterRegion(gv_playerUnits, RegionFromId(50), 0));
    while (!UnitGroupLoopDone()) {
        UnitGroupAdd(gv_playerUnitsArea1, UnitGroupLoopCurrent());

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/zergcombat.sc2mapMapScript.galaxy:2149

    }
    UnitGroupLoopEnd();
    UnitGroupLoopBegin(UnitGroupFilterRegion(gv_playerUnits, RegionFromId(51), 0));
    while (!UnitGroupLoopDone()) {
        UnitGroupAdd(gv_playerUnitsArea2, UnitGroupLoopCurrent());

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/zergcombat.sc2mapMapScript.galaxy:2155

    }
    UnitGroupLoopEnd();
    UnitGroupLoopBegin(UnitGroupFilterRegion(gv_playerUnits, RegionFromId(49), 0));
    while (!UnitGroupLoopDone()) {
        UnitGroupAdd(gv_playerUnitsArea3, UnitGroupLoopCurrent());

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zchar02.sc2map/MapScript.galaxy:2910

    }

    autoD430C434_g = UnitGroupFilterRegion(gv_firebats, RegionCircle(UnitGetPosition(EventUnit()), 5.0), 0);
    autoD430C434_u = UnitGroupCount(autoD430C434_g, c_unitCountAll);
    for (;; autoD430C434_u -= 1) {

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

            lv_indexUnit = UnitGroupUnitFromEnd(auto73F8972F_g, auto73F8972F_u);
            if (lv_indexUnit == null) { break; }
            lv_tempGroup = UnitGroupFilterRegion(lv_armyLeftGroup, RegionCircle(UnitGetPosition(lv_indexUnit), 5.0), 0);
            UnitGroupAddUnitGroup(lv_clusterGroup, lv_tempGroup);
            UnitGroupAddUnitGroup(lv_newNewGroup, lv_tempGroup);

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

            AIAttackWaveSend(gv_pLAYER_04_DOMINION_CLEANSERS, 90, false);
            gv_cleanserWaves[gv_cleanserWaveCount] = WaveLastCreated();
            while (!((UnitGroupCount(UnitGroupFilterRegion(AIWaveGetUnits(gv_cleanserWaves[gv_cleanserWaveCount]), RegionCircle(UnitGetPosition(gv_virophageRecord[ge_VirophageName_VirophageSA1].lv_virophage), 60.0), 0), c_unitCountAlive) > 0))) {
                Wait(1.0, c_timeGame);
            }

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


    auto84B08F90_at = 0;
    while (!((UnitGroupCount(UnitGroupFilterRegion(AIWaveGetUnits(gv_cleanserWaves[gv_cleanserWaveCount]), RegionCircle(UnitGetPosition(gv_cleanserTeamTargets[gv_cleanserWaveCount]), 40.0), 0), c_unitCountAlive) > 0)) && auto84B08F90_at <= 30.0) {
        Wait(1.0, c_timeAI);
        auto84B08F90_at = auto84B08F90_at + 1.0;