# Closest Unit To Point Old

Grammar — Closest unit to point in group|Unit Group
FlagsFunction | Hidden

Picks the closest unit to the point specified in a unit group.

# Arguments

  • point — Point
  • unitgroup — Group

Returns — unit

unit libNtve_gf_ClosestUnitToPoint(
	point lp_point,
	unitgroup lp_group,
);

Category: Unit Group / Groups

# Examples

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

        auto98FD8F65_var = UnitGroupUnitFromEnd(auto98FD8F65_g, auto98FD8F65_u);
        if (auto98FD8F65_var == null) { break; }
        UnitIssueOrder(auto98FD8F65_var, OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(libNtve_gf_ClosestUnitToPoint(UnitGetPosition(auto98FD8F65_var), UnitGroup(null, gv_p1_USER, RegionEntireMap(), UnitFilter((1 << c_targetFilterGround), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterInvulnerable - 32))), 0)))), c_orderQueueReplace);
    }
    return true;

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

        auto182727CD_var = UnitGroupUnitFromEnd(auto182727CD_g, auto182727CD_u);
        if (auto182727CD_var == null) { break; }
        UnitIssueOrder(auto182727CD_var, OrderTargetingUnit(AbilityCommand("attack", 0), libNtve_gf_ClosestUnitToPoint(UnitGetPosition(auto182727CD_var), UnitGroup("Marine", gv_p4_COLONISTS, RegionEntireMap(), UnitFilter(0, 0, 0, (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0))), c_orderQueueReplace);
    }
    return true;

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

        }
        else {
            UnitIssueOrder(auto338F5CC8_var, OrderTargetingUnit(AbilityCommand("SCVHarvest", 0), libNtve_gf_ClosestUnitToPoint(UnitGetPosition(auto338F5CC8_var), UnitGroup("MineralField", 0, RegionCircle(UnitGetPosition(auto338F5CC8_var), 12.0), UnitFilter(0, 0, 0, (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0))), c_orderQueueReplace);
        }
    }

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

        }

        UnitGroupIssueOrder(gv_rockDestroyers, OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(libNtve_gf_ClosestUnitToPoint(UnitGetPosition(UnitGroupUnit(gv_rockDestroyers, 1)), UnitGroup(null, gv_pLAYER_01_USER, RegionEntireMap(), UnitFilter((1 << c_targetFilterStructure), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0)))), c_orderQueueReplace);
        Wait(4.0, c_timeGame);
    }

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

    UnitGroupAdd(gv_escapeCivilians, UnitLastCreated());
    UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(918)), c_orderQueueReplace);
    UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("move", 4), UnitGetPosition(libNtve_gf_ClosestUnitToPoint(UnitGetPosition(UnitLastCreated()), UnitGroup(null, gv_p1_USER, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0)))), c_orderQueueAddToEnd);
    libNtve_gf_CreateUnitsAtPoint2(1, "Civilian", 0, gv_p3_RIKSVILLE_YELLOW, PointFromId(888));
    libNtve_gf_UnitSetVariation(UnitLastCreated(), "Civilian", 2, "male,backpack,01");

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

    UnitGroupAdd(gv_escapeCivilians, UnitLastCreated());
    UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(919)), c_orderQueueReplace);
    UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("move", 4), UnitGetPosition(libNtve_gf_ClosestUnitToPoint(UnitGetPosition(UnitLastCreated()), UnitGroup(null, gv_p1_USER, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0)))), c_orderQueueAddToEnd);
    Wait(0.2, c_timeGame);
    libNtve_gf_CreateUnitsAtPoint2(1, "Civilian", 0, gv_p3_RIKSVILLE_YELLOW, PointFromId(888));

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

    UnitGroupAdd(gv_escapeCivilians, UnitLastCreated());
    UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(1152)), c_orderQueueReplace);
    UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("move", 4), UnitGetPosition(libNtve_gf_ClosestUnitToPoint(UnitGetPosition(UnitLastCreated()), UnitGroup(null, gv_p1_USER, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0)))), c_orderQueueAddToEnd);
    libNtve_gf_CreateUnitsAtPoint2(1, "Civilian", 0, gv_p3_RIKSVILLE_YELLOW, PointFromId(888));
    libNtve_gf_UnitSetVariation(UnitLastCreated(), "Civilian", 3, "male,helmet,02");

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

    UnitGroupAdd(gv_escapeCivilians, UnitLastCreated());
    UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(1153)), c_orderQueueReplace);
    UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("move", 4), UnitGetPosition(libNtve_gf_ClosestUnitToPoint(UnitGetPosition(UnitLastCreated()), UnitGroup(null, gv_p1_USER, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0)))), c_orderQueueAddToEnd);
    Wait(0.2, c_timeGame);
    libNtve_gf_CreateUnitsAtPoint2(1, "Civilian", 0, gv_p3_RIKSVILLE_YELLOW, PointFromId(890));

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

    gf_SetCivviePropertiesforSpawnedunit(UnitLastCreated());
    UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(926)), c_orderQueueReplace);
    UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("move", 4), UnitGetPosition(libNtve_gf_ClosestUnitToPoint(UnitGetPosition(UnitLastCreated()), UnitGroup(null, gv_p1_USER, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0)))), c_orderQueueAddToEnd);
    libNtve_gf_CreateUnitsAtPoint2(1, "Civilian", 0, gv_p3_RIKSVILLE_YELLOW, PointFromId(890));
    libNtve_gf_UnitSetVariation(UnitLastCreated(), "Civilian", 1, "male,helmet,01");

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

    gf_SetCivviePropertiesforSpawnedunit(UnitLastCreated());
    UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(920)), c_orderQueueReplace);
    UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("move", 4), UnitGetPosition(libNtve_gf_ClosestUnitToPoint(UnitGetPosition(UnitLastCreated()), UnitGroup(null, gv_p1_USER, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0)))), c_orderQueueAddToEnd);
    Wait(0.2, c_timeGame);
    TriggerExecute(gt_CivilianMarchQ, true, false);

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

    UnitGroupAdd(gv_escapeCivilians, UnitLastCreated());
    UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(1155)), c_orderQueueReplace);
    UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("move", 4), UnitGetPosition(libNtve_gf_ClosestUnitToPoint(UnitGetPosition(UnitLastCreated()), UnitGroup(null, gv_p1_USER, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0)))), c_orderQueueAddToEnd);
    libNtve_gf_CreateUnitsAtPoint2(1, "Civilian", 0, gv_p3_RIKSVILLE_YELLOW, PointFromId(890));
    libNtve_gf_UnitSetVariation(UnitLastCreated(), "Civilian", 1, "male,03");

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

    UnitGroupAdd(gv_escapeCivilians, UnitLastCreated());
    UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(1154)), c_orderQueueReplace);
    UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("move", 4), UnitGetPosition(libNtve_gf_ClosestUnitToPoint(UnitGetPosition(UnitLastCreated()), UnitGroup(null, gv_p1_USER, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0)))), c_orderQueueAddToEnd);
    Wait(0.2, c_timeGame);
    libNtve_gf_CreateUnitsAtPoint2(1, "Civilian", 0, gv_p3_RIKSVILLE_YELLOW, PointFromId(891));

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

    UnitGroupAdd(gv_escapeCivilians, UnitLastCreated());
    UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(927)), c_orderQueueReplace);
    UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("move", 4), UnitGetPosition(libNtve_gf_ClosestUnitToPoint(UnitGetPosition(UnitLastCreated()), UnitGroup(null, gv_p1_USER, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0)))), c_orderQueueAddToEnd);
    libNtve_gf_CreateUnitsAtPoint2(1, "Civilian", 0, gv_p3_RIKSVILLE_YELLOW, PointFromId(891));
    libNtve_gf_UnitSetVariation(UnitLastCreated(), "Civilian", 1, "male,helmet,03");

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

    UnitGroupAdd(gv_escapeCivilians, UnitLastCreated());
    UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(1156)), c_orderQueueReplace);
    UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("move", 4), UnitGetPosition(libNtve_gf_ClosestUnitToPoint(UnitGetPosition(UnitLastCreated()), UnitGroup(null, gv_p1_USER, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0)))), c_orderQueueAddToEnd);
    auto8A7E80E5_g = gv_escapeCivilians;
    auto8A7E80E5_u = UnitGroupCount(auto8A7E80E5_g, c_unitCountAll);

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

                libNtve_gf_PlayAnimation(libNtve_gf_MainActorofUnit(lv_colonist), c_animNameDefault, "Talk", c_animFlagNonLooping, c_animTimeDefault);
                UIAlertUnit("Transmission", gv_pLAYER_01_USER, StringToText(""), null, lv_colonist);
                libNtve_gf_MakeUnitFacePoint(lv_colonist, UnitGetPosition(libNtve_gf_ClosestUnitToPoint(UnitGetPosition(lv_colonist), UnitGroup(null, gv_pLAYER_01_USER, RegionCircle(UnitGetPosition(lv_colonist), 8.0), UnitFilter((1 << c_targetFilterGround), 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile) | (1 << c_targetFilterCloaked), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0))), 0.5);
                libCamp_gf_SetAllSoundChannelVolumesCampaign(libNtve_ge_VolumeChannelMode_Speech);
                libLbty_gf_PlayTransmissionCueSound(PlayerGroupAll());

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

                libNtve_gf_PlayAnimation(libNtve_gf_MainActorofUnit(lv_colonist), c_animNameDefault, "Talk", c_animFlagNonLooping, c_animTimeDefault);
                UIAlertUnit("Transmission", gv_pLAYER_01_USER, StringToText(""), null, lv_colonist);
                libNtve_gf_MakeUnitFacePoint(lv_colonist, UnitGetPosition(libNtve_gf_ClosestUnitToPoint(UnitGetPosition(lv_colonist), UnitGroup(null, gv_pLAYER_01_USER, RegionCircle(UnitGetPosition(lv_colonist), 8.0), UnitFilter((1 << c_targetFilterGround), 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile) | (1 << c_targetFilterCloaked), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0))), 0.5);
                libCamp_gf_SetAllSoundChannelVolumesCampaign(libNtve_ge_VolumeChannelMode_Speech);
                libLbty_gf_PlayTransmissionCueSound(PlayerGroupAll());

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

                libNtve_gf_PlayAnimation(libNtve_gf_MainActorofUnit(lv_colonist), c_animNameDefault, "Talk", c_animFlagNonLooping, c_animTimeDefault);
                UIAlertUnit("Transmission", gv_pLAYER_01_USER, StringToText(""), null, lv_colonist);
                libNtve_gf_MakeUnitFacePoint(lv_colonist, UnitGetPosition(libNtve_gf_ClosestUnitToPoint(UnitGetPosition(lv_colonist), UnitGroup(null, gv_pLAYER_01_USER, RegionCircle(UnitGetPosition(lv_colonist), 8.0), UnitFilter((1 << c_targetFilterGround), 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile) | (1 << c_targetFilterCloaked), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0))), 0.5);
                libCamp_gf_SetAllSoundChannelVolumesCampaign(libNtve_ge_VolumeChannelMode_Speech);
                libLbty_gf_PlayTransmissionCueSound(PlayerGroupAll());

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

                libNtve_gf_PlayAnimation(libNtve_gf_MainActorofUnit(lv_colonist), c_animNameDefault, "Talk", c_animFlagNonLooping, c_animTimeDefault);
                UIAlertUnit("Transmission", gv_pLAYER_01_USER, StringToText(""), null, lv_colonist);
                libNtve_gf_MakeUnitFacePoint(lv_colonist, UnitGetPosition(libNtve_gf_ClosestUnitToPoint(UnitGetPosition(lv_colonist), UnitGroup(null, gv_pLAYER_01_USER, RegionCircle(UnitGetPosition(lv_colonist), 8.0), UnitFilter((1 << c_targetFilterGround), 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile) | (1 << c_targetFilterCloaked), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0))), 0.5);
                libCamp_gf_SetAllSoundChannelVolumesCampaign(libNtve_ge_VolumeChannelMode_Speech);
                libLbty_gf_PlayTransmissionCueSound(PlayerGroupAll());

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

                libNtve_gf_PlayAnimation(libNtve_gf_MainActorofUnit(lv_colonist), c_animNameDefault, "Talk", c_animFlagNonLooping, c_animTimeDefault);
                UIAlertUnit("Transmission", gv_pLAYER_01_USER, StringToText(""), null, lv_colonist);
                libNtve_gf_MakeUnitFacePoint(lv_colonist, UnitGetPosition(libNtve_gf_ClosestUnitToPoint(UnitGetPosition(lv_colonist), UnitGroup(null, gv_pLAYER_01_USER, RegionCircle(UnitGetPosition(lv_colonist), 8.0), UnitFilter((1 << c_targetFilterGround), 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile) | (1 << c_targetFilterCloaked), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0))), 0.5);
                libCamp_gf_SetAllSoundChannelVolumesCampaign(libNtve_ge_VolumeChannelMode_Speech);
                libLbty_gf_PlayTransmissionCueSound(PlayerGroupAll());

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

                libNtve_gf_PlayAnimation(libNtve_gf_MainActorofUnit(lv_colonist), c_animNameDefault, "Talk", c_animFlagNonLooping, c_animTimeDefault);
                UIAlertUnit("Transmission", gv_pLAYER_01_USER, StringToText(""), null, lv_colonist);
                libNtve_gf_MakeUnitFacePoint(lv_colonist, UnitGetPosition(libNtve_gf_ClosestUnitToPoint(UnitGetPosition(lv_colonist), UnitGroup(null, gv_pLAYER_01_USER, RegionCircle(UnitGetPosition(lv_colonist), 8.0), UnitFilter((1 << c_targetFilterGround), 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile) | (1 << c_targetFilterCloaked), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0))), 0.5);
                libCamp_gf_SetAllSoundChannelVolumesCampaign(libNtve_ge_VolumeChannelMode_Speech);
                libLbty_gf_PlayTransmissionCueSound(PlayerGroupAll());

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

                libNtve_gf_PlayAnimation(libNtve_gf_MainActorofUnit(lv_colonist), c_animNameDefault, "Talk", c_animFlagNonLooping, c_animTimeDefault);
                UIAlertUnit("Transmission", gv_pLAYER_01_USER, StringToText(""), null, lv_colonist);
                libNtve_gf_MakeUnitFacePoint(lv_colonist, UnitGetPosition(libNtve_gf_ClosestUnitToPoint(UnitGetPosition(lv_colonist), UnitGroup(null, gv_pLAYER_01_USER, RegionCircle(UnitGetPosition(lv_colonist), 8.0), UnitFilter((1 << c_targetFilterGround), 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile) | (1 << c_targetFilterCloaked), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0))), 0.5);
                libCamp_gf_SetAllSoundChannelVolumesCampaign(libNtve_ge_VolumeChannelMode_Speech);
                libLbty_gf_PlayTransmissionCueSound(PlayerGroupAll());

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


        if ((UnitGroupCount(UnitGroup(null, gv_pLAYER_01_USER, RegionFromId(15), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) > 0)) {
            lv_target = UnitGetPosition(libNtve_gf_ClosestUnitToPoint(RegionGetCenter(RegionFromId(15)), UnitGroup(null, gv_pLAYER_01_USER, RegionFromId(15), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0)));
            auto988C8ED7_ae = gv_dominionGuardsSize;
            lv_i = 1;

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


        if ((UnitGroupCount(UnitGroup(null, gv_pLAYER_01_USER, RegionFromId(20), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) > 0)) {
            lv_target = UnitGetPosition(libNtve_gf_ClosestUnitToPoint(RegionGetCenter(RegionFromId(20)), UnitGroup(null, gv_pLAYER_01_USER, RegionFromId(15), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0)));
            autoD2FCF587_ae = gv_dominionGuardsSize;
            lv_i = 1;

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

            auto07E01211_var = UnitGroupUnitFromEnd(auto07E01211_g, auto07E01211_u);
            if (auto07E01211_var == null) { break; }
            UnitIssueOrder(auto07E01211_var, OrderTargetingUnit(AbilityCommand("attack", 0), libNtve_gf_ClosestUnitToPoint(UnitGetPosition(auto07E01211_var), UnitGroup(null, gv_pLAYER_01_USER, RegionFromId(25), UnitFilter(0, 0, 0, (1 << (c_targetFilterDead - 32))), 0))), c_orderQueueReplace);
        }
        Wait(1.0, c_timeGame);

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

                if ((UnitGetType(lv_zergGroup[lv_i].lv_ambusher) == "Zergling")) {
                    if ((UnitGroupCount(UnitGroup(null, gv_p01_USER, RegionCircle(UnitGetPosition(lv_zergGroup[lv_i].lv_ambusher), 16.0), UnitFilter(0, 0, (1 << c_targetFilterAir) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) > 0)) {
                        UnitIssueOrder(lv_zergGroup[lv_i].lv_ambusher, OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(libNtve_gf_ClosestUnitToPoint(UnitGetPosition(lv_zergGroup[lv_i].lv_ambusher), UnitGroup(null, gv_p01_USER, RegionCircle(UnitGetPosition(lv_zergGroup[lv_i].lv_ambusher), 16.0), UnitFilter(0, 0, (1 << c_targetFilterAir) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0)))), c_orderQueueReplace);
                    }
                    else {

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

                else {
                    if ((UnitGroupCount(UnitGroup(null, gv_p01_USER, RegionCircle(UnitGetPosition(lv_zergGroup[lv_i].lv_ambusher), 16.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) > 0)) {
                        UnitIssueOrder(lv_zergGroup[lv_i].lv_ambusher, OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(libNtve_gf_ClosestUnitToPoint(UnitGetPosition(lv_zergGroup[lv_i].lv_ambusher), UnitGroup(null, gv_p01_USER, RegionCircle(UnitGetPosition(lv_zergGroup[lv_i].lv_ambusher), 16.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0)))), c_orderQueueReplace);
                    }
                    else {

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

        Wait(1.0, c_timeAI);
        if ((UnitGroupCount(UnitGroup(null, gv_p1_USER, RegionFromId(3), UnitFilter((1 << c_targetFilterGround), 0, (1 << c_targetFilterMissile) | (1 << c_targetFilterCloaked), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1)) {
            UnitGroupIssueOrder(gv_nEDefendersGroup, OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(libNtve_gf_ClosestUnitToPoint(RegionGetCenter(RegionFromId(3)), UnitGroup(null, gv_p1_USER, RegionFromId(3), UnitFilter((1 << c_targetFilterGround), 0, (1 << c_targetFilterMissile) | (1 << c_targetFilterCloaked), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0)))), c_orderQueueReplace);
        }
        else {

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


    }
    lv_newTerrazineTarget = libNtve_gf_ClosestUnitToPoint(RegionGetCenter(gv_terrazineRegions[FixedToInt(UnitGetCustomValue(EventUnit(), 3))]), lv_unharvestedTerrazineGroup);
    if ((lv_newTerrazineTarget == null)) {
        UnitSetCustomValue(EventUnit(), 0, 0.0);

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


    }
    lv_target = FixedToInt(UnitGetCustomValue(libNtve_gf_ClosestUnitToPoint(PointFromId(10), lv_rawTerrazineGroup), 0));
    gf_AITerrazineHarvestAttempt(lv_target, 1);
    return true;

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


        if ((UnitGroupCount(UnitGroup(null, gv_p2_RAYNOR_LIGHTBLUE, RegionFromId(46), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1)) {
            lv_attackPoint = UnitGetPosition(libNtve_gf_ClosestUnitToPoint(RegionGetCenter(RegionFromId(46)), UnitGroup(null, gv_p2_RAYNOR_LIGHTBLUE, RegionFromId(46), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0)));
            autoA36E5FD5_ae = gv_numberOfInitialMarines;
            lv_i = 1;

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

                }

                lv_attackPoint = UnitGetPosition(libNtve_gf_ClosestUnitToPoint(RegionGetCenter(RegionFromId(38)), UnitGroup(null, gv_p2_RAYNOR_LIGHTBLUE, RegionFromId(38), UnitFilter(0, 0, (1 << c_targetFilterMissile) | (1 << c_targetFilterCloaked), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0)));
                auto1C4DD019_ae = gv_numberOfAOEMarines;
                lv_i = 1;

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


    }
    lv_searcher = libNtve_gf_ClosestUnitToPoint(RegionGetCenter(RegionFromId(46)), UnitGroupFilter(null, c_playerAny, lv_victims, UnitFilter(0, 0, 0, (1 << (c_targetFilterDead - 32))), 0));
    if ((UnitIsAlive(lv_searcher) == false)) {
        return true;

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

    TriggerEnable(TriggerGetCurrent(), false);
    lv_marineGroup = UnitGroup("Marine", gv_p6_DOMINION_ORANGE, RegionFromId(46), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
    lv_searcher = libNtve_gf_ClosestUnitToPoint(UnitGetPosition(gv_tosh), lv_marineGroup);
    libNtve_gf_MakeUnitFacePoint(lv_searcher, UnitGetPosition(gv_tosh), 0.3);
    auto222AD403_g = lv_marineGroup;

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

    gv_cellBlockASearching = true;
    lv_patrolGroup = UnitGroupFilter(null, gv_p6_DOMINION_ORANGE, gv_cellBlockAJerksGroup, UnitFilter(0, 0, (1 << c_targetFilterAir) | (1 << c_targetFilterMechanical) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
    lv_searcher = libNtve_gf_ClosestUnitToPoint(UnitGetPosition(gv_tosh), lv_patrolGroup);
    UnitIssueOrder(lv_searcher, Order(AbilityCommand("stop", 0)), c_orderQueueReplace);
    libNtve_gf_MakeUnitFacePoint(lv_searcher, UnitGetPosition(gv_tosh), 0.3);

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

        if ((UnitOrder(lv_driver, 0) == null)) {
            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");

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

            else {
            }
            lv_target = libNtve_gf_ClosestUnitToPoint(UnitGetPosition(UnitFromId(181)), lv_potentialvictims);
            UnitIssueOrder(UnitFromId(181), OrderTargetingUnit(AbilityCommand("Obliterate", 0), lv_target), c_orderQueueReplace);
        }

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

            else {
            }
            lv_target = libNtve_gf_ClosestUnitToPoint(UnitGetPosition(UnitFromId(425)), lv_potentialvictims);
            UnitIssueOrder(UnitFromId(425), OrderTargetingUnit(AbilityCommand("Obliterate", 0), lv_target), c_orderQueueReplace);
        }

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

            else {
            }
            lv_target = libNtve_gf_ClosestUnitToPoint(UnitGetPosition(UnitFromId(306)), lv_potentialvictims);
            UnitIssueOrder(UnitFromId(306), OrderTargetingUnit(AbilityCommand("Obliterate", 0), lv_target), 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:1957

                autoB75B9F15_var = UnitGroupUnitFromEnd(autoB75B9F15_g, autoB75B9F15_u);
                if (autoB75B9F15_var == null) { break; }
                UnitIssueOrder(autoB75B9F15_var, OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(libNtve_gf_ClosestUnitToPoint(UnitGetPosition(gv_artifact), lv_enemyGroup))), c_orderQueueReplace);
            }
        }

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

                autoC8A4FE47_var = UnitGroupUnitFromEnd(autoC8A4FE47_g, autoC8A4FE47_u);
                if (autoC8A4FE47_var == null) { break; }
                UnitIssueOrder(autoC8A4FE47_var, OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(libNtve_gf_ClosestUnitToPoint(UnitGetPosition(gv_artifact), lv_enemyGroup))), c_orderQueueReplace);
            }
        }

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

        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)));
        }
        else {

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

        }
        if ((UnitGroupCount(lv_enemies, c_unitCountAlive) > 1)) {
            lv_target = UnitGetPosition(libNtve_gf_ClosestUnitToPoint(UnitGetPosition(gv_artifact), lv_enemies));
        }
        else {

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

    auto6E1715D8_n = libNtve_gf_DifficultyValueInt(2, 2, 2, 3);
    for (auto6E1715D8_i = 1; auto6E1715D8_i <= auto6E1715D8_n; auto6E1715D8_i += 1) {
        lv_tARGET = libNtve_gf_ClosestUnitToPoint(PointFromId(464), UnitGroup(null, gv_p01_USER, RegionCircle(RegionGetCenter(RegionFromId(5)), 10.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
        libNtve_gf_CreateUnitsAtPoint2(1, "Roach", 0, gv_p02_ZERG, PointFromId(490));
        UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("attack", 0), PointFromId(464)), c_orderQueueReplace);

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

    auto8794C39C_n = libNtve_gf_DifficultyValueInt(3, 3, 2, 1);
    for (auto8794C39C_i = 1; auto8794C39C_i <= auto8794C39C_n; auto8794C39C_i += 1) {
        lv_tARGET = libNtve_gf_ClosestUnitToPoint(PointFromId(464), UnitGroup(null, gv_p01_USER, RegionCircle(RegionGetCenter(RegionFromId(5)), 10.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
        libNtve_gf_CreateUnitsAtPoint2(1, libNtve_gf_DifficultyValueUnitType("Zergling", "Zergling", "Zergling", "Hydralisk"), 0, gv_p02_ZERG, PointFromId(490));
        UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("attack", 0), PointFromId(464)), c_orderQueueReplace);

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

    }

    lv_rallypoint = UnitGetPosition(libNtve_gf_ClosestUnitToPoint(UnitGetPosition(lp_activatedunit), lv_targets));
    UnitIssueOrder(lp_activatedunit, Order(AbilityCommand("BurrowZerglingUp", 0)), c_orderQueueReplace);
    UnitIssueOrder(lp_activatedunit, OrderTargetingPoint(AbilityCommand("attack", 0), lv_rallypoint), c_orderQueueReplace);

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

        }

        lv_egg = libNtve_gf_ClosestUnitToPoint(UnitGetPosition(gv_tHEONEBROODMOTHER), UnitGroup("Egg", c_playerAny, gv__3QueenEggPopRegion, UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
        while (true) {
            UnitIssueOrder(gv_tHEONEBROODMOTHER, OrderTargetingUnit(AbilityCommand("EggPop", 0), lv_egg), c_orderQueueReplace);

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

        UnitIssueOrder(auto8DBA43E6_var, Order(AbilityCommand("BurrowZerglingUp", 0)), c_orderQueueReplace);
        UnitIssueOrder(auto8DBA43E6_var, OrderSetAutoCast(AbilityCommand("SapStructure", 0), true), c_orderQueueReplace);
        lv_rallypoint = UnitGetPosition(libNtve_gf_ClosestUnitToPoint(UnitGetPosition(auto8DBA43E6_var), lv_targets));
        UnitIssueOrder(auto8DBA43E6_var, OrderTargetingPoint(AbilityCommand("attack", 0), lv_rallypoint), c_orderQueueReplace);
        if ((UnitGetType(auto8DBA43E6_var) == "Infestor")) {

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

    libLbty_gf_PlayTransmissionCueSound(PlayerGroupAll());
    // Transmission - SoundLink("TZeratul02Immortal00070", 0)
    libCamp_gf_SendTransmissionCampaign(libNtve_gf_ClosestUnitToPoint(CameraGetTarget(gv_p1_USER), UnitGroup("Immortal", gv_p1_USER, RegionEntireMap(), UnitFilter(0, 0, 0, (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0)), SoundLink("TZeratul02Immortal00070", 0), c_transmissionDurationAdd, 0.0, true);
    // Transmission - SoundLink("TZeratul02Zeratul00031", 0)
    libCamp_gf_SendTransmissionCampaign(null, SoundLink("TZeratul02Zeratul00031", 0), c_transmissionDurationAdd, 0.0, true);

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

    libLbty_gf_PlayTransmissionCueSound(PlayerGroupAll());
    // Transmission - SoundLink("TZeratul02HighTemplar00061", 0)
    libCamp_gf_SendTransmissionCampaign(libNtve_gf_ClosestUnitToPoint(CameraGetTarget(gv_p1_USER), UnitGroup("HighTemplar", gv_p1_USER, RegionEntireMap(), UnitFilter(0, 0, 0, (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0)), SoundLink("TZeratul02HighTemplar00061", 0), c_transmissionDurationAdd, 0.0, true);
    // Transmission - SoundLink("TZeratul02Zeratul00012", 0)
    libCamp_gf_SendTransmissionCampaign(null, SoundLink("TZeratul02Zeratul00012", 0), c_transmissionDurationAdd, 0.0, true);

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

        auto98FD8F65_var = UnitGroupUnitFromEnd(auto98FD8F65_g, auto98FD8F65_u);
        if (auto98FD8F65_var == null) { break; }
        UnitIssueOrder(auto98FD8F65_var, OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(libNtve_gf_ClosestUnitToPoint(UnitGetPosition(auto98FD8F65_var), UnitGroup(null, gv_p1_USER, RegionEntireMap(), UnitFilter((1 << c_targetFilterGround), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterInvulnerable - 32))), 0)))), c_orderQueueReplace);
    }
    return true;

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

        auto182727CD_var = UnitGroupUnitFromEnd(auto182727CD_g, auto182727CD_u);
        if (auto182727CD_var == null) { break; }
        UnitIssueOrder(auto182727CD_var, OrderTargetingUnit(AbilityCommand("attack", 0), libNtve_gf_ClosestUnitToPoint(UnitGetPosition(auto182727CD_var), UnitGroup("Marine", gv_p4_COLONISTS, RegionEntireMap(), UnitFilter(0, 0, 0, (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0))), c_orderQueueReplace);
    }
    return true;

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

        }
        else {
            UnitIssueOrder(auto338F5CC8_var, OrderTargetingUnit(AbilityCommand("SCVHarvest", 0), libNtve_gf_ClosestUnitToPoint(UnitGetPosition(auto338F5CC8_var), UnitGroup("MineralField", 0, RegionCircle(UnitGetPosition(auto338F5CC8_var), 12.0), UnitFilter(0, 0, 0, (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0))), c_orderQueueReplace);
        }
    }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson02.sc2mapMapScript.galaxy:2864

        }

        UnitGroupIssueOrder(gv_rockDestroyers, OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(libNtve_gf_ClosestUnitToPoint(UnitGetPosition(UnitGroupUnit(gv_rockDestroyers, 1)), UnitGroup(null, gv_pLAYER_01_USER, RegionEntireMap(), UnitFilter((1 << c_targetFilterStructure), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0)))), c_orderQueueReplace);
        Wait(4.0, c_timeGame);
    }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/traynor01.sc2mapMapScript.galaxy:2510

    UnitGroupAdd(gv_escapeCivilians, UnitLastCreated());
    UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(918)), c_orderQueueReplace);
    UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("move", 4), UnitGetPosition(libNtve_gf_ClosestUnitToPoint(UnitGetPosition(UnitLastCreated()), UnitGroup(null, gv_p1_USER, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0)))), c_orderQueueAddToEnd);
    libNtve_gf_CreateUnitsAtPoint2(1, "Civilian", 0, gv_p3_RIKSVILLE_YELLOW, PointFromId(888));
    libNtve_gf_UnitSetVariation(UnitLastCreated(), "Civilian", 2, "male,backpack,01");

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/traynor01.sc2mapMapScript.galaxy:2516

    UnitGroupAdd(gv_escapeCivilians, UnitLastCreated());
    UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(919)), c_orderQueueReplace);
    UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("move", 4), UnitGetPosition(libNtve_gf_ClosestUnitToPoint(UnitGetPosition(UnitLastCreated()), UnitGroup(null, gv_p1_USER, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0)))), c_orderQueueAddToEnd);
    Wait(0.2, c_timeGame);
    libNtve_gf_CreateUnitsAtPoint2(1, "Civilian", 0, gv_p3_RIKSVILLE_YELLOW, PointFromId(888));

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/traynor01.sc2mapMapScript.galaxy:2523

    UnitGroupAdd(gv_escapeCivilians, UnitLastCreated());
    UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(1152)), c_orderQueueReplace);
    UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("move", 4), UnitGetPosition(libNtve_gf_ClosestUnitToPoint(UnitGetPosition(UnitLastCreated()), UnitGroup(null, gv_p1_USER, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0)))), c_orderQueueAddToEnd);
    libNtve_gf_CreateUnitsAtPoint2(1, "Civilian", 0, gv_p3_RIKSVILLE_YELLOW, PointFromId(888));
    libNtve_gf_UnitSetVariation(UnitLastCreated(), "Civilian", 3, "male,helmet,02");

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/traynor01.sc2mapMapScript.galaxy:2529

    UnitGroupAdd(gv_escapeCivilians, UnitLastCreated());
    UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(1153)), c_orderQueueReplace);
    UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("move", 4), UnitGetPosition(libNtve_gf_ClosestUnitToPoint(UnitGetPosition(UnitLastCreated()), UnitGroup(null, gv_p1_USER, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0)))), c_orderQueueAddToEnd);
    Wait(0.2, c_timeGame);
    libNtve_gf_CreateUnitsAtPoint2(1, "Civilian", 0, gv_p3_RIKSVILLE_YELLOW, PointFromId(890));

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/traynor01.sc2mapMapScript.galaxy:2537

    gf_SetCivviePropertiesforSpawnedunit(UnitLastCreated());
    UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(926)), c_orderQueueReplace);
    UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("move", 4), UnitGetPosition(libNtve_gf_ClosestUnitToPoint(UnitGetPosition(UnitLastCreated()), UnitGroup(null, gv_p1_USER, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0)))), c_orderQueueAddToEnd);
    libNtve_gf_CreateUnitsAtPoint2(1, "Civilian", 0, gv_p3_RIKSVILLE_YELLOW, PointFromId(890));
    libNtve_gf_UnitSetVariation(UnitLastCreated(), "Civilian", 1, "male,helmet,01");

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/traynor01.sc2mapMapScript.galaxy:2543

    gf_SetCivviePropertiesforSpawnedunit(UnitLastCreated());
    UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(920)), c_orderQueueReplace);
    UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("move", 4), UnitGetPosition(libNtve_gf_ClosestUnitToPoint(UnitGetPosition(UnitLastCreated()), UnitGroup(null, gv_p1_USER, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0)))), c_orderQueueAddToEnd);
    Wait(0.2, c_timeGame);
    TriggerExecute(gt_CivilianMarchQ, true, false);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/traynor01.sc2mapMapScript.galaxy:2551

    UnitGroupAdd(gv_escapeCivilians, UnitLastCreated());
    UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(1155)), c_orderQueueReplace);
    UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("move", 4), UnitGetPosition(libNtve_gf_ClosestUnitToPoint(UnitGetPosition(UnitLastCreated()), UnitGroup(null, gv_p1_USER, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0)))), c_orderQueueAddToEnd);
    libNtve_gf_CreateUnitsAtPoint2(1, "Civilian", 0, gv_p3_RIKSVILLE_YELLOW, PointFromId(890));
    libNtve_gf_UnitSetVariation(UnitLastCreated(), "Civilian", 1, "male,03");

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/traynor01.sc2mapMapScript.galaxy:2557

    UnitGroupAdd(gv_escapeCivilians, UnitLastCreated());
    UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(1154)), c_orderQueueReplace);
    UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("move", 4), UnitGetPosition(libNtve_gf_ClosestUnitToPoint(UnitGetPosition(UnitLastCreated()), UnitGroup(null, gv_p1_USER, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0)))), c_orderQueueAddToEnd);
    Wait(0.2, c_timeGame);
    libNtve_gf_CreateUnitsAtPoint2(1, "Civilian", 0, gv_p3_RIKSVILLE_YELLOW, PointFromId(891));

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/traynor01.sc2mapMapScript.galaxy:2564

    UnitGroupAdd(gv_escapeCivilians, UnitLastCreated());
    UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(927)), c_orderQueueReplace);
    UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("move", 4), UnitGetPosition(libNtve_gf_ClosestUnitToPoint(UnitGetPosition(UnitLastCreated()), UnitGroup(null, gv_p1_USER, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0)))), c_orderQueueAddToEnd);
    libNtve_gf_CreateUnitsAtPoint2(1, "Civilian", 0, gv_p3_RIKSVILLE_YELLOW, PointFromId(891));
    libNtve_gf_UnitSetVariation(UnitLastCreated(), "Civilian", 1, "male,helmet,03");

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/traynor01.sc2mapMapScript.galaxy:2571

    UnitGroupAdd(gv_escapeCivilians, UnitLastCreated());
    UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(1156)), c_orderQueueReplace);
    UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("move", 4), UnitGetPosition(libNtve_gf_ClosestUnitToPoint(UnitGetPosition(UnitLastCreated()), UnitGroup(null, gv_p1_USER, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0)))), c_orderQueueAddToEnd);
    auto8A7E80E5_g = gv_escapeCivilians;
    auto8A7E80E5_u = UnitGroupCount(auto8A7E80E5_g, c_unitCountAll);

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

                libNtve_gf_PlayAnimation(libNtve_gf_MainActorofUnit(lv_colonist), c_animNameDefault, "Talk", c_animFlagNonLooping, c_animTimeDefault);
                UIAlertUnit("Transmission", gv_pLAYER_01_USER, StringToText(""), null, lv_colonist);
                libNtve_gf_MakeUnitFacePoint(lv_colonist, UnitGetPosition(libNtve_gf_ClosestUnitToPoint(UnitGetPosition(lv_colonist), UnitGroup(null, gv_pLAYER_01_USER, RegionCircle(UnitGetPosition(lv_colonist), 8.0), UnitFilter((1 << c_targetFilterGround), 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile) | (1 << c_targetFilterCloaked), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0))), 0.5);
                libCamp_gf_SetAllSoundChannelVolumesCampaign(libNtve_ge_VolumeChannelMode_Speech);
                libLbty_gf_PlayTransmissionCueSound(PlayerGroupAll());

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

                libNtve_gf_PlayAnimation(libNtve_gf_MainActorofUnit(lv_colonist), c_animNameDefault, "Talk", c_animFlagNonLooping, c_animTimeDefault);
                UIAlertUnit("Transmission", gv_pLAYER_01_USER, StringToText(""), null, lv_colonist);
                libNtve_gf_MakeUnitFacePoint(lv_colonist, UnitGetPosition(libNtve_gf_ClosestUnitToPoint(UnitGetPosition(lv_colonist), UnitGroup(null, gv_pLAYER_01_USER, RegionCircle(UnitGetPosition(lv_colonist), 8.0), UnitFilter((1 << c_targetFilterGround), 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile) | (1 << c_targetFilterCloaked), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0))), 0.5);
                libCamp_gf_SetAllSoundChannelVolumesCampaign(libNtve_ge_VolumeChannelMode_Speech);
                libLbty_gf_PlayTransmissionCueSound(PlayerGroupAll());

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

                libNtve_gf_PlayAnimation(libNtve_gf_MainActorofUnit(lv_colonist), c_animNameDefault, "Talk", c_animFlagNonLooping, c_animTimeDefault);
                UIAlertUnit("Transmission", gv_pLAYER_01_USER, StringToText(""), null, lv_colonist);
                libNtve_gf_MakeUnitFacePoint(lv_colonist, UnitGetPosition(libNtve_gf_ClosestUnitToPoint(UnitGetPosition(lv_colonist), UnitGroup(null, gv_pLAYER_01_USER, RegionCircle(UnitGetPosition(lv_colonist), 8.0), UnitFilter((1 << c_targetFilterGround), 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile) | (1 << c_targetFilterCloaked), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0))), 0.5);
                libCamp_gf_SetAllSoundChannelVolumesCampaign(libNtve_ge_VolumeChannelMode_Speech);
                libLbty_gf_PlayTransmissionCueSound(PlayerGroupAll());

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

                libNtve_gf_PlayAnimation(libNtve_gf_MainActorofUnit(lv_colonist), c_animNameDefault, "Talk", c_animFlagNonLooping, c_animTimeDefault);
                UIAlertUnit("Transmission", gv_pLAYER_01_USER, StringToText(""), null, lv_colonist);
                libNtve_gf_MakeUnitFacePoint(lv_colonist, UnitGetPosition(libNtve_gf_ClosestUnitToPoint(UnitGetPosition(lv_colonist), UnitGroup(null, gv_pLAYER_01_USER, RegionCircle(UnitGetPosition(lv_colonist), 8.0), UnitFilter((1 << c_targetFilterGround), 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile) | (1 << c_targetFilterCloaked), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0))), 0.5);
                libCamp_gf_SetAllSoundChannelVolumesCampaign(libNtve_ge_VolumeChannelMode_Speech);
                libLbty_gf_PlayTransmissionCueSound(PlayerGroupAll());

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

                libNtve_gf_PlayAnimation(libNtve_gf_MainActorofUnit(lv_colonist), c_animNameDefault, "Talk", c_animFlagNonLooping, c_animTimeDefault);
                UIAlertUnit("Transmission", gv_pLAYER_01_USER, StringToText(""), null, lv_colonist);
                libNtve_gf_MakeUnitFacePoint(lv_colonist, UnitGetPosition(libNtve_gf_ClosestUnitToPoint(UnitGetPosition(lv_colonist), UnitGroup(null, gv_pLAYER_01_USER, RegionCircle(UnitGetPosition(lv_colonist), 8.0), UnitFilter((1 << c_targetFilterGround), 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile) | (1 << c_targetFilterCloaked), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0))), 0.5);
                libCamp_gf_SetAllSoundChannelVolumesCampaign(libNtve_ge_VolumeChannelMode_Speech);
                libLbty_gf_PlayTransmissionCueSound(PlayerGroupAll());

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

                libNtve_gf_PlayAnimation(libNtve_gf_MainActorofUnit(lv_colonist), c_animNameDefault, "Talk", c_animFlagNonLooping, c_animTimeDefault);
                UIAlertUnit("Transmission", gv_pLAYER_01_USER, StringToText(""), null, lv_colonist);
                libNtve_gf_MakeUnitFacePoint(lv_colonist, UnitGetPosition(libNtve_gf_ClosestUnitToPoint(UnitGetPosition(lv_colonist), UnitGroup(null, gv_pLAYER_01_USER, RegionCircle(UnitGetPosition(lv_colonist), 8.0), UnitFilter((1 << c_targetFilterGround), 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile) | (1 << c_targetFilterCloaked), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0))), 0.5);
                libCamp_gf_SetAllSoundChannelVolumesCampaign(libNtve_ge_VolumeChannelMode_Speech);
                libLbty_gf_PlayTransmissionCueSound(PlayerGroupAll());

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

                libNtve_gf_PlayAnimation(libNtve_gf_MainActorofUnit(lv_colonist), c_animNameDefault, "Talk", c_animFlagNonLooping, c_animTimeDefault);
                UIAlertUnit("Transmission", gv_pLAYER_01_USER, StringToText(""), null, lv_colonist);
                libNtve_gf_MakeUnitFacePoint(lv_colonist, UnitGetPosition(libNtve_gf_ClosestUnitToPoint(UnitGetPosition(lv_colonist), UnitGroup(null, gv_pLAYER_01_USER, RegionCircle(UnitGetPosition(lv_colonist), 8.0), UnitFilter((1 << c_targetFilterGround), 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile) | (1 << c_targetFilterCloaked), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0))), 0.5);
                libCamp_gf_SetAllSoundChannelVolumesCampaign(libNtve_ge_VolumeChannelMode_Speech);
                libLbty_gf_PlayTransmissionCueSound(PlayerGroupAll());

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


        if ((UnitGroupCount(UnitGroup(null, gv_pLAYER_01_USER, RegionFromId(15), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) > 0)) {
            lv_target = UnitGetPosition(libNtve_gf_ClosestUnitToPoint(RegionGetCenter(RegionFromId(15)), UnitGroup(null, gv_pLAYER_01_USER, RegionFromId(15), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0)));
            auto988C8ED7_ae = gv_dominionGuardsSize;
            lv_i = 1;

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


        if ((UnitGroupCount(UnitGroup(null, gv_pLAYER_01_USER, RegionFromId(20), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) > 0)) {
            lv_target = UnitGetPosition(libNtve_gf_ClosestUnitToPoint(RegionGetCenter(RegionFromId(20)), UnitGroup(null, gv_pLAYER_01_USER, RegionFromId(15), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0)));
            autoD2FCF587_ae = gv_dominionGuardsSize;
            lv_i = 1;

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

            auto07E01211_var = UnitGroupUnitFromEnd(auto07E01211_g, auto07E01211_u);
            if (auto07E01211_var == null) { break; }
            UnitIssueOrder(auto07E01211_var, OrderTargetingUnit(AbilityCommand("attack", 0), libNtve_gf_ClosestUnitToPoint(UnitGetPosition(auto07E01211_var), UnitGroup(null, gv_pLAYER_01_USER, RegionFromId(25), UnitFilter(0, 0, 0, (1 << (c_targetFilterDead - 32))), 0))), c_orderQueueReplace);
        }
        Wait(1.0, c_timeGame);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh01.sc2mapMapScript.galaxy:1552

                if ((UnitGetType(lv_zergGroup[lv_i].lv_ambusher) == "Zergling")) {
                    if ((UnitGroupCount(UnitGroup(null, gv_p01_USER, RegionCircle(UnitGetPosition(lv_zergGroup[lv_i].lv_ambusher), 16.0), UnitFilter(0, 0, (1 << c_targetFilterAir) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) > 0)) {
                        UnitIssueOrder(lv_zergGroup[lv_i].lv_ambusher, OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(libNtve_gf_ClosestUnitToPoint(UnitGetPosition(lv_zergGroup[lv_i].lv_ambusher), UnitGroup(null, gv_p01_USER, RegionCircle(UnitGetPosition(lv_zergGroup[lv_i].lv_ambusher), 16.0), UnitFilter(0, 0, (1 << c_targetFilterAir) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0)))), c_orderQueueReplace);
                    }
                    else {

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh01.sc2mapMapScript.galaxy:1562

                else {
                    if ((UnitGroupCount(UnitGroup(null, gv_p01_USER, RegionCircle(UnitGetPosition(lv_zergGroup[lv_i].lv_ambusher), 16.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) > 0)) {
                        UnitIssueOrder(lv_zergGroup[lv_i].lv_ambusher, OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(libNtve_gf_ClosestUnitToPoint(UnitGetPosition(lv_zergGroup[lv_i].lv_ambusher), UnitGroup(null, gv_p01_USER, RegionCircle(UnitGetPosition(lv_zergGroup[lv_i].lv_ambusher), 16.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0)))), c_orderQueueReplace);
                    }
                    else {

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

        Wait(1.0, c_timeAI);
        if ((UnitGroupCount(UnitGroup(null, gv_p1_USER, RegionFromId(3), UnitFilter((1 << c_targetFilterGround), 0, (1 << c_targetFilterMissile) | (1 << c_targetFilterCloaked), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1)) {
            UnitGroupIssueOrder(gv_nEDefendersGroup, OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(libNtve_gf_ClosestUnitToPoint(RegionGetCenter(RegionFromId(3)), UnitGroup(null, gv_p1_USER, RegionFromId(3), UnitFilter((1 << c_targetFilterGround), 0, (1 << c_targetFilterMissile) | (1 << c_targetFilterCloaked), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0)))), c_orderQueueReplace);
        }
        else {

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


    }
    lv_newTerrazineTarget = libNtve_gf_ClosestUnitToPoint(RegionGetCenter(gv_terrazineRegions[FixedToInt(UnitGetCustomValue(EventUnit(), 3))]), lv_unharvestedTerrazineGroup);
    if ((lv_newTerrazineTarget == null)) {
        UnitSetCustomValue(EventUnit(), 0, 0.0);

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


    }
    lv_target = FixedToInt(UnitGetCustomValue(libNtve_gf_ClosestUnitToPoint(PointFromId(10), lv_rawTerrazineGroup), 0));
    gf_AITerrazineHarvestAttempt(lv_target, 1);
    return true;

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh03a.sc2mapMapScript.galaxy:1367


        if ((UnitGroupCount(UnitGroup(null, gv_p2_RAYNOR_LIGHTBLUE, RegionFromId(46), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1)) {
            lv_attackPoint = UnitGetPosition(libNtve_gf_ClosestUnitToPoint(RegionGetCenter(RegionFromId(46)), UnitGroup(null, gv_p2_RAYNOR_LIGHTBLUE, RegionFromId(46), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0)));
            autoA36E5FD5_ae = gv_numberOfInitialMarines;
            lv_i = 1;

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh03a.sc2mapMapScript.galaxy:1451

                }

                lv_attackPoint = UnitGetPosition(libNtve_gf_ClosestUnitToPoint(RegionGetCenter(RegionFromId(38)), UnitGroup(null, gv_p2_RAYNOR_LIGHTBLUE, RegionFromId(38), UnitFilter(0, 0, (1 << c_targetFilterMissile) | (1 << c_targetFilterCloaked), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0)));
                auto1C4DD019_ae = gv_numberOfAOEMarines;
                lv_i = 1;

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh03a.sc2mapMapScript.galaxy:1525


    }
    lv_searcher = libNtve_gf_ClosestUnitToPoint(RegionGetCenter(RegionFromId(46)), UnitGroupFilter(null, c_playerAny, lv_victims, UnitFilter(0, 0, 0, (1 << (c_targetFilterDead - 32))), 0));
    if ((UnitIsAlive(lv_searcher) == false)) {
        return true;

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh03a.sc2mapMapScript.galaxy:1612

    TriggerEnable(TriggerGetCurrent(), false);
    lv_marineGroup = UnitGroup("Marine", gv_p6_DOMINION_ORANGE, RegionFromId(46), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
    lv_searcher = libNtve_gf_ClosestUnitToPoint(UnitGetPosition(gv_tosh), lv_marineGroup);
    libNtve_gf_MakeUnitFacePoint(lv_searcher, UnitGetPosition(gv_tosh), 0.3);
    auto222AD403_g = lv_marineGroup;

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh03a.sc2mapMapScript.galaxy:2334

    gv_cellBlockASearching = true;
    lv_patrolGroup = UnitGroupFilter(null, gv_p6_DOMINION_ORANGE, gv_cellBlockAJerksGroup, UnitFilter(0, 0, (1 << c_targetFilterAir) | (1 << c_targetFilterMechanical) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
    lv_searcher = libNtve_gf_ClosestUnitToPoint(UnitGetPosition(gv_tosh), lv_patrolGroup);
    UnitIssueOrder(lv_searcher, Order(AbilityCommand("stop", 0)), c_orderQueueReplace);
    libNtve_gf_MakeUnitFacePoint(lv_searcher, UnitGetPosition(gv_tosh), 0.3);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh03a.sc2mapMapScript.galaxy:2751

        if ((UnitOrder(lv_driver, 0) == null)) {
            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");

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh03b.sc2mapMapScript.galaxy:2112

            else {
            }
            lv_target = libNtve_gf_ClosestUnitToPoint(UnitGetPosition(UnitFromId(181)), lv_potentialvictims);
            UnitIssueOrder(UnitFromId(181), OrderTargetingUnit(AbilityCommand("Obliterate", 0), lv_target), c_orderQueueReplace);
        }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh03b.sc2mapMapScript.galaxy:3530

            else {
            }
            lv_target = libNtve_gf_ClosestUnitToPoint(UnitGetPosition(UnitFromId(425)), lv_potentialvictims);
            UnitIssueOrder(UnitFromId(425), OrderTargetingUnit(AbilityCommand("Obliterate", 0), lv_target), c_orderQueueReplace);
        }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh03b.sc2mapMapScript.galaxy:4114

            else {
            }
            lv_target = libNtve_gf_ClosestUnitToPoint(UnitGetPosition(UnitFromId(306)), lv_potentialvictims);
            UnitIssueOrder(UnitFromId(306), OrderTargetingUnit(AbilityCommand("Obliterate", 0), lv_target), 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:1957

                autoB75B9F15_var = UnitGroupUnitFromEnd(autoB75B9F15_g, autoB75B9F15_u);
                if (autoB75B9F15_var == null) { break; }
                UnitIssueOrder(autoB75B9F15_var, OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(libNtve_gf_ClosestUnitToPoint(UnitGetPosition(gv_artifact), lv_enemyGroup))), c_orderQueueReplace);
            }
        }

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

                autoC8A4FE47_var = UnitGroupUnitFromEnd(autoC8A4FE47_g, autoC8A4FE47_u);
                if (autoC8A4FE47_var == null) { break; }
                UnitIssueOrder(autoC8A4FE47_var, OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(libNtve_gf_ClosestUnitToPoint(UnitGetPosition(gv_artifact), lv_enemyGroup))), c_orderQueueReplace);
            }
        }

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

        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)));
        }
        else {

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

        }
        if ((UnitGroupCount(lv_enemies, c_unitCountAlive) > 1)) {
            lv_target = UnitGetPosition(libNtve_gf_ClosestUnitToPoint(UnitGetPosition(gv_artifact), lv_enemies));
        }
        else {

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

    auto6E1715D8_n = libNtve_gf_DifficultyValueInt(2, 2, 2, 3);
    for (auto6E1715D8_i = 1; auto6E1715D8_i <= auto6E1715D8_n; auto6E1715D8_i += 1) {
        lv_tARGET = libNtve_gf_ClosestUnitToPoint(PointFromId(464), UnitGroup(null, gv_p01_USER, RegionCircle(RegionGetCenter(RegionFromId(5)), 10.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
        libNtve_gf_CreateUnitsAtPoint2(1, "Roach", 0, gv_p02_ZERG, PointFromId(490));
        UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("attack", 0), PointFromId(464)), c_orderQueueReplace);

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

    auto8794C39C_n = libNtve_gf_DifficultyValueInt(3, 3, 2, 1);
    for (auto8794C39C_i = 1; auto8794C39C_i <= auto8794C39C_n; auto8794C39C_i += 1) {
        lv_tARGET = libNtve_gf_ClosestUnitToPoint(PointFromId(464), UnitGroup(null, gv_p01_USER, RegionCircle(RegionGetCenter(RegionFromId(5)), 10.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
        libNtve_gf_CreateUnitsAtPoint2(1, libNtve_gf_DifficultyValueUnitType("Zergling", "Zergling", "Zergling", "Hydralisk"), 0, gv_p02_ZERG, PointFromId(490));
        UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("attack", 0), PointFromId(464)), c_orderQueueReplace);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian02a.sc2mapMapScript.galaxy:592

    }

    lv_rallypoint = UnitGetPosition(libNtve_gf_ClosestUnitToPoint(UnitGetPosition(lp_activatedunit), lv_targets));
    UnitIssueOrder(lp_activatedunit, Order(AbilityCommand("BurrowZerglingUp", 0)), c_orderQueueReplace);
    UnitIssueOrder(lp_activatedunit, OrderTargetingPoint(AbilityCommand("attack", 0), lv_rallypoint), c_orderQueueReplace);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian02a.sc2mapMapScript.galaxy:7353

        }

        lv_egg = libNtve_gf_ClosestUnitToPoint(UnitGetPosition(gv_tHEONEBROODMOTHER), UnitGroup("Egg", c_playerAny, gv__3QueenEggPopRegion, UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
        while (true) {
            UnitIssueOrder(gv_tHEONEBROODMOTHER, OrderTargetingUnit(AbilityCommand("EggPop", 0), lv_egg), c_orderQueueReplace);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian02a.sc2mapMapScript.galaxy:8314

        UnitIssueOrder(auto8DBA43E6_var, Order(AbilityCommand("BurrowZerglingUp", 0)), c_orderQueueReplace);
        UnitIssueOrder(auto8DBA43E6_var, OrderSetAutoCast(AbilityCommand("SapStructure", 0), true), c_orderQueueReplace);
        lv_rallypoint = UnitGetPosition(libNtve_gf_ClosestUnitToPoint(UnitGetPosition(auto8DBA43E6_var), lv_targets));
        UnitIssueOrder(auto8DBA43E6_var, OrderTargetingPoint(AbilityCommand("attack", 0), lv_rallypoint), c_orderQueueReplace);
        if ((UnitGetType(auto8DBA43E6_var) == "Infestor")) {

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

    libLbty_gf_PlayTransmissionCueSound(PlayerGroupAll());
    // Transmission - SoundLink("TZeratul02Immortal00070", 0)
    libCamp_gf_SendTransmissionCampaign(libNtve_gf_ClosestUnitToPoint(CameraGetTarget(gv_p1_USER), UnitGroup("Immortal", gv_p1_USER, RegionEntireMap(), UnitFilter(0, 0, 0, (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0)), SoundLink("TZeratul02Immortal00070", 0), c_transmissionDurationAdd, 0.0, true);
    // Transmission - SoundLink("TZeratul02Zeratul00031", 0)
    libCamp_gf_SendTransmissionCampaign(null, SoundLink("TZeratul02Zeratul00031", 0), c_transmissionDurationAdd, 0.0, true);

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

    libLbty_gf_PlayTransmissionCueSound(PlayerGroupAll());
    // Transmission - SoundLink("TZeratul02HighTemplar00061", 0)
    libCamp_gf_SendTransmissionCampaign(libNtve_gf_ClosestUnitToPoint(CameraGetTarget(gv_p1_USER), UnitGroup("HighTemplar", gv_p1_USER, RegionEntireMap(), UnitFilter(0, 0, 0, (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0)), SoundLink("TZeratul02HighTemplar00061", 0), c_transmissionDurationAdd, 0.0, true);
    // Transmission - SoundLink("TZeratul02Zeratul00012", 0)
    libCamp_gf_SendTransmissionCampaign(null, SoundLink("TZeratul02Zeratul00012", 0), c_transmissionDurationAdd, 0.0, true);