# Center Of Unit Group Old

Grammar — Center of unitGroup
FlagsFunction | Hidden

Returns the center of a group of units, defined as the average of their X and Y positions. Returns No Point if the unit group is empty.

# Arguments

  • unitgroup — Unit Group

Returns — point

point libNtve_gf_CenterOfUnitGroup(unitgroup lp_unitGroup);

Category: Unit Group / Groups

# Examples

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

        TriggerEnable(gt_TerrorFleetBetaBaseBehavior, true);
        TriggerExecute(gt_TransmissionFirstTerrorFleetWarningQ, true, false);
        PingCreate(PlayerGroupSingle(gv_pLAYER01_USER), "PingWarning", libNtve_gf_CenterOfUnitGroup(gv_terrorFleetGroup), ColorWithAlpha(100.00, 0.00, 0.00, 0.00), 0.0);
        auto567D6800_g = gv_terrorFleetGroup;
        auto567D6800_u = UnitGroupCount(auto567D6800_g, c_unitCountAll);

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

        TriggerEnable(gt_TerrorFleetGammaBaseBehavior, true);
        TriggerExecute(gt_TransmissionSecondTerrorFleetWarningQ, true, false);
        PingCreate(PlayerGroupSingle(gv_pLAYER01_USER), "PingWarning", libNtve_gf_CenterOfUnitGroup(gv_terrorFleetGroup), ColorWithAlpha(100.00, 0.00, 0.00, 0.00), 0.0);
        autoDB0C784B_g = gv_terrorFleetGroup;
        autoDB0C784B_u = UnitGroupCount(autoDB0C784B_g, c_unitCountAll);

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

        TriggerEnable(gt_TerrorFleetOmegaBaseBehavior, true);
        TriggerExecute(gt_TransmissionThirdTerrorFleetWarningQ, true, false);
        PingCreate(PlayerGroupSingle(gv_pLAYER01_USER), "PingWarning", libNtve_gf_CenterOfUnitGroup(gv_terrorFleetGroup), ColorWithAlpha(100.00, 0.00, 0.00, 0.00), 0.0);
        auto2B21D5ED_g = gv_terrorFleetGroup;
        auto2B21D5ED_u = UnitGroupCount(auto2B21D5ED_g, c_unitCountAll);

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


    if ((UnitGroupCount(gv_terrorFleetGroup, c_unitCountAlive) > 0)) {
        PingSetPosition(gv_terrorFleetPing, libNtve_gf_CenterOfUnitGroup(gv_terrorFleetGroup));
        PingSetScale(gv_terrorFleetPing, 0.75);
        PingSetTooltip(gv_terrorFleetPing, StringExternal("Param/Value/67A6F3CE"));

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

            }
            else {
                PingSetPosition(lv_topPing, libNtve_gf_CenterOfUnitGroup(gv_patrolTop));
                PingSetVisible(lv_topPing, true);
                if ((gv_patrolWaveSpawnedTop == true)) {

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

            }
            else {
                PingSetPosition(lv_bottomPing, libNtve_gf_CenterOfUnitGroup(gv_patrolBottom));
                PingSetVisible(lv_bottomPing, true);
                if ((gv_patrolWaveSpawnedBottom == true)) {

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

            }
            else {
                PingSetPosition(lv_singlePing, libNtve_gf_CenterOfUnitGroup(gv_patrolSingle));
                PingSetVisible(lv_singlePing, true);
                if ((gv_patrolWaveSpawnedSingle == true)) {

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

        }

        if ((UnitIsAlive(gv_tosh) == true) && (libNtve_gf_UnitIsVisibleToPlayer(gv_tosh, gv_p6_DOMINION_ORANGE) == true) && (libNtve_gf_UnitInRegion(gv_tosh, RegionCircle(libNtve_gf_CenterOfUnitGroup(lv_patrolGroup), 9.0)) == true)) {
            UnitGroupIssueOrder(lv_patrolGroup, OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(gv_tosh)), c_orderQueueReplace);
        }

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

    }
    if ((UnitGroupCount(lv_initialMarineGroup, c_unitCountAlive) >= 4)) {
        libNtve_gf_CreateModelAtPoint("BriefingUnitSelectLargeRed", libNtve_gf_CenterOfUnitGroup(lv_initialMarineGroup));
        gv_actorMindblastIndicator = libNtve_gf_ActorLastCreated();
        TextTagCreate(StringExternal("Param/Value/52AB2985"), 22, UnitGetPosition(UnitFromId(1887)), 2.0, true, false, PlayerGroupAll());

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

        TextTagSetPosition(TextTagLastCreated(), PointWithOffset(PointFromId(1158), 0.0, 0.0), 1.0);
        TextTagSetColor(TextTagLastCreated(), c_textTagColorText, Color(0.00, 100.00, 0.00));
        SoundPlayAtPoint(SoundLink("UI_TipSelect", -1), PlayerGroupAll(), libNtve_gf_CenterOfUnitGroup(lv_initialMarineGroup), 0.0, 100.0, 0.0);
        TimerStart(lv_indicatorTimeout, 10.0, false, c_timeAI);
        while (true) {

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

    if ((UnitGroupCount(UnitGroup("AutoTurret", gv_p01_USER, RegionCircle(UnitGetPosition(gv_uNIT_KERRIGAN), 8.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1)) {
        UnitAbilityReset(gv_uNIT_KERRIGAN, AbilityCommand("Tychus03OmegaStorm", 0), c_spendLocationAbility);
        UnitIssueOrder(gv_uNIT_KERRIGAN, OrderTargetingPoint(AbilityCommand("Tychus03OmegaStorm", 0), libNtve_gf_CenterOfUnitGroup(UnitGroup("AutoTurret", gv_p01_USER, RegionCircle(UnitGetPosition(gv_uNIT_KERRIGAN), 8.0), UnitFilter(0, 0, (1 << c_targetFilterAir) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0))), c_orderQueueReplace);
        Wait(2.0, c_timeGame);
        UnitIssueOrder(gv_uNIT_KERRIGAN, OrderTargetingPoint(AbilityCommand("move", 0), RegionGetCenter(gv_kerrigansTarget)), c_orderQueueReplace);

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

    if ((UnitGroupCount(UnitGroup("SiegeTankSieged", gv_p01_USER, RegionCircle(UnitGetPosition(gv_uNIT_KERRIGAN), 8.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1)) {
        UnitAbilityReset(gv_uNIT_KERRIGAN, AbilityCommand("Tychus03OmegaStorm", 0), c_spendLocationAbility);
        UnitIssueOrder(gv_uNIT_KERRIGAN, OrderTargetingPoint(AbilityCommand("Tychus03OmegaStorm", 0), libNtve_gf_CenterOfUnitGroup(UnitGroup("SiegeTankSieged", gv_p01_USER, RegionCircle(UnitGetPosition(gv_uNIT_KERRIGAN), 8.0), UnitFilter(0, 0, (1 << c_targetFilterAir) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0))), c_orderQueueReplace);
        Wait(2.0, c_timeGame);
        UnitIssueOrder(gv_uNIT_KERRIGAN, OrderTargetingPoint(AbilityCommand("move", 0), RegionGetCenter(gv_kerrigansTarget)), c_orderQueueReplace);

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

    if ((UnitGroupCount(UnitGroup(null, gv_p01_USER, RegionCircle(UnitGetPosition(gv_uNIT_KERRIGAN), 5.0), UnitFilter(0, 0, (1 << c_targetFilterAir) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 5)) {
        UnitAbilityReset(gv_uNIT_KERRIGAN, AbilityCommand("Tychus03OmegaStorm", 0), c_spendLocationAbility);
        UnitIssueOrder(gv_uNIT_KERRIGAN, OrderTargetingPoint(AbilityCommand("Tychus03OmegaStorm", 0), libNtve_gf_CenterOfUnitGroup(UnitGroup(null, gv_p01_USER, RegionCircle(UnitGetPosition(gv_uNIT_KERRIGAN), 5.0), UnitFilter(0, 0, (1 << c_targetFilterAir) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0))), c_orderQueueReplace);
        Wait(2.0, c_timeGame);
        UnitIssueOrder(gv_uNIT_KERRIGAN, OrderTargetingPoint(AbilityCommand("move", 0), RegionGetCenter(gv_kerrigansTarget)), c_orderQueueReplace);

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

        else {
            PingSetVisible(lv_airPing, true);
            PingSetPosition(lv_airPing, libNtve_gf_CenterOfUnitGroup(gv_airPingGroup));
        }
        if ((UnitGroupCount(gv_airPingGroupBehind, c_unitCountAlive) == 0)) {

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

        else {
            PingSetVisible(lv_airPingBehind, true);
            PingSetPosition(lv_airPingBehind, libNtve_gf_CenterOfUnitGroup(gv_airPingGroupBehind));
        }
        if ((UnitGroupCount(gv_airPingGroup, c_unitCountAlive) == 0) && (UnitGroupCount(gv_airPingGroupBehind, c_unitCountAlive) == 0)) {

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

        TriggerEnable(gt_TerrorFleetBetaBaseBehavior, true);
        TriggerExecute(gt_TransmissionFirstTerrorFleetWarningQ, true, false);
        PingCreate(PlayerGroupSingle(gv_pLAYER01_USER), "PingWarning", libNtve_gf_CenterOfUnitGroup(gv_terrorFleetGroup), ColorWithAlpha(100.00, 0.00, 0.00, 0.00), 0.0);
        auto567D6800_g = gv_terrorFleetGroup;
        auto567D6800_u = UnitGroupCount(auto567D6800_g, c_unitCountAll);

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

        TriggerEnable(gt_TerrorFleetGammaBaseBehavior, true);
        TriggerExecute(gt_TransmissionSecondTerrorFleetWarningQ, true, false);
        PingCreate(PlayerGroupSingle(gv_pLAYER01_USER), "PingWarning", libNtve_gf_CenterOfUnitGroup(gv_terrorFleetGroup), ColorWithAlpha(100.00, 0.00, 0.00, 0.00), 0.0);
        autoDB0C784B_g = gv_terrorFleetGroup;
        autoDB0C784B_u = UnitGroupCount(autoDB0C784B_g, c_unitCountAll);

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

        TriggerEnable(gt_TerrorFleetOmegaBaseBehavior, true);
        TriggerExecute(gt_TransmissionThirdTerrorFleetWarningQ, true, false);
        PingCreate(PlayerGroupSingle(gv_pLAYER01_USER), "PingWarning", libNtve_gf_CenterOfUnitGroup(gv_terrorFleetGroup), ColorWithAlpha(100.00, 0.00, 0.00, 0.00), 0.0);
        auto2B21D5ED_g = gv_terrorFleetGroup;
        auto2B21D5ED_u = UnitGroupCount(auto2B21D5ED_g, c_unitCountAll);

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


    if ((UnitGroupCount(gv_terrorFleetGroup, c_unitCountAlive) > 0)) {
        PingSetPosition(gv_terrorFleetPing, libNtve_gf_CenterOfUnitGroup(gv_terrorFleetGroup));
        PingSetScale(gv_terrorFleetPing, 0.75);
        PingSetTooltip(gv_terrorFleetPing, StringExternal("Param/Value/67A6F3CE"));

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

            }
            else {
                PingSetPosition(lv_topPing, libNtve_gf_CenterOfUnitGroup(gv_patrolTop));
                PingSetVisible(lv_topPing, true);
                if ((gv_patrolWaveSpawnedTop == true)) {

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

            }
            else {
                PingSetPosition(lv_bottomPing, libNtve_gf_CenterOfUnitGroup(gv_patrolBottom));
                PingSetVisible(lv_bottomPing, true);
                if ((gv_patrolWaveSpawnedBottom == true)) {

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

            }
            else {
                PingSetPosition(lv_singlePing, libNtve_gf_CenterOfUnitGroup(gv_patrolSingle));
                PingSetVisible(lv_singlePing, true);
                if ((gv_patrolWaveSpawnedSingle == true)) {

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

        }

        if ((UnitIsAlive(gv_tosh) == true) && (libNtve_gf_UnitIsVisibleToPlayer(gv_tosh, gv_p6_DOMINION_ORANGE) == true) && (libNtve_gf_UnitInRegion(gv_tosh, RegionCircle(libNtve_gf_CenterOfUnitGroup(lv_patrolGroup), 9.0)) == true)) {
            UnitGroupIssueOrder(lv_patrolGroup, OrderTargetingPoint(AbilityCommand("attack", 0), UnitGetPosition(gv_tosh)), c_orderQueueReplace);
        }

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

    }
    if ((UnitGroupCount(lv_initialMarineGroup, c_unitCountAlive) >= 4)) {
        libNtve_gf_CreateModelAtPoint("BriefingUnitSelectLargeRed", libNtve_gf_CenterOfUnitGroup(lv_initialMarineGroup));
        gv_actorMindblastIndicator = libNtve_gf_ActorLastCreated();
        TextTagCreate(StringExternal("Param/Value/52AB2985"), 22, UnitGetPosition(UnitFromId(1887)), 2.0, true, false, PlayerGroupAll());

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

        TextTagSetPosition(TextTagLastCreated(), PointWithOffset(PointFromId(1158), 0.0, 0.0), 1.0);
        TextTagSetColor(TextTagLastCreated(), c_textTagColorText, Color(0.00, 100.00, 0.00));
        SoundPlayAtPoint(SoundLink("UI_TipSelect", -1), PlayerGroupAll(), libNtve_gf_CenterOfUnitGroup(lv_initialMarineGroup), 0.0, 100.0, 0.0);
        TimerStart(lv_indicatorTimeout, 10.0, false, c_timeAI);
        while (true) {

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

    if ((UnitGroupCount(UnitGroup("AutoTurret", gv_p01_USER, RegionCircle(UnitGetPosition(gv_uNIT_KERRIGAN), 8.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1)) {
        UnitAbilityReset(gv_uNIT_KERRIGAN, AbilityCommand("Tychus03OmegaStorm", 0), c_spendLocationAbility);
        UnitIssueOrder(gv_uNIT_KERRIGAN, OrderTargetingPoint(AbilityCommand("Tychus03OmegaStorm", 0), libNtve_gf_CenterOfUnitGroup(UnitGroup("AutoTurret", gv_p01_USER, RegionCircle(UnitGetPosition(gv_uNIT_KERRIGAN), 8.0), UnitFilter(0, 0, (1 << c_targetFilterAir) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0))), c_orderQueueReplace);
        Wait(2.0, c_timeGame);
        UnitIssueOrder(gv_uNIT_KERRIGAN, OrderTargetingPoint(AbilityCommand("move", 0), RegionGetCenter(gv_kerrigansTarget)), c_orderQueueReplace);

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

    if ((UnitGroupCount(UnitGroup("SiegeTankSieged", gv_p01_USER, RegionCircle(UnitGetPosition(gv_uNIT_KERRIGAN), 8.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 1)) {
        UnitAbilityReset(gv_uNIT_KERRIGAN, AbilityCommand("Tychus03OmegaStorm", 0), c_spendLocationAbility);
        UnitIssueOrder(gv_uNIT_KERRIGAN, OrderTargetingPoint(AbilityCommand("Tychus03OmegaStorm", 0), libNtve_gf_CenterOfUnitGroup(UnitGroup("SiegeTankSieged", gv_p01_USER, RegionCircle(UnitGetPosition(gv_uNIT_KERRIGAN), 8.0), UnitFilter(0, 0, (1 << c_targetFilterAir) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0))), c_orderQueueReplace);
        Wait(2.0, c_timeGame);
        UnitIssueOrder(gv_uNIT_KERRIGAN, OrderTargetingPoint(AbilityCommand("move", 0), RegionGetCenter(gv_kerrigansTarget)), c_orderQueueReplace);

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

    if ((UnitGroupCount(UnitGroup(null, gv_p01_USER, RegionCircle(UnitGetPosition(gv_uNIT_KERRIGAN), 5.0), UnitFilter(0, 0, (1 << c_targetFilterAir) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) >= 5)) {
        UnitAbilityReset(gv_uNIT_KERRIGAN, AbilityCommand("Tychus03OmegaStorm", 0), c_spendLocationAbility);
        UnitIssueOrder(gv_uNIT_KERRIGAN, OrderTargetingPoint(AbilityCommand("Tychus03OmegaStorm", 0), libNtve_gf_CenterOfUnitGroup(UnitGroup(null, gv_p01_USER, RegionCircle(UnitGetPosition(gv_uNIT_KERRIGAN), 5.0), UnitFilter(0, 0, (1 << c_targetFilterAir) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0))), c_orderQueueReplace);
        Wait(2.0, c_timeGame);
        UnitIssueOrder(gv_uNIT_KERRIGAN, OrderTargetingPoint(AbilityCommand("move", 0), RegionGetCenter(gv_kerrigansTarget)), c_orderQueueReplace);

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

        else {
            PingSetVisible(lv_airPing, true);
            PingSetPosition(lv_airPing, libNtve_gf_CenterOfUnitGroup(gv_airPingGroup));
        }
        if ((UnitGroupCount(gv_airPingGroupBehind, c_unitCountAlive) == 0)) {

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

        else {
            PingSetVisible(lv_airPingBehind, true);
            PingSetPosition(lv_airPingBehind, libNtve_gf_CenterOfUnitGroup(gv_airPingGroupBehind));
        }
        if ((UnitGroupCount(gv_airPingGroup, c_unitCountAlive) == 0) && (UnitGroupCount(gv_airPingGroupBehind, c_unitCountAlive) == 0)) {

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/evolution/zevolutionhydralisk.sc2map/MapScript.galaxy:422

        }
        else {
            PingSetPosition(lp_pING, libNtve_gf_CenterOfUnitGroup(lp_gROUP));
            PingSetVisible(lp_pING, true);
        }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zexpedition02.sc2map/MapScript.galaxy:969

    // Implementation
    while ((UnitGroupCount(lp_unitgroup, c_unitCountAlive) > 0)) {
        lv_distancebetweenlaunchandevac = DistanceBetweenPoints(libNtve_gf_CenterOfUnitGroup(lp_unitgroup), lp_endpoint);
        lv_distancechunks = FixedToInt((lv_distancebetweenlaunchandevac / lv_distbwpings));
        auto904DF92E_ae = lv_distancechunks;

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zexpedition02.sc2map/MapScript.galaxy:974

        lv_foreachint_i = 1;
        for ( ; ( (auto904DF92E_ai >= 0 && lv_foreachint_i <= auto904DF92E_ae) || (auto904DF92E_ai < 0 && lv_foreachint_i >= auto904DF92E_ae) ) ; lv_foreachint_i += auto904DF92E_ai ) {
            libNtve_gf_CreatePingFacingAngle(PlayerGroupAll(), "PingArrow", libNtve_gf_PointOffsetTowardsPoint(libNtve_gf_CenterOfUnitGroup(lp_unitgroup), (lv_distbwpings * IntToFixed(lv_foreachint_i)), lp_endpoint), ColorWithAlpha(100.00, 0.00, 0.00, 24.71), lv_pinglifetime, AngleBetweenPoints(libNtve_gf_CenterOfUnitGroup(lp_unitgroup), lp_endpoint));
            PingSetScale(PingLastCreated(), 0.5);
            PingSetTooltip(PingLastCreated(), StringExternal("Param/Value/19D6601D"));

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zexpedition02.sc2map/MapScript.galaxy:974

        lv_foreachint_i = 1;
        for ( ; ( (auto904DF92E_ai >= 0 && lv_foreachint_i <= auto904DF92E_ae) || (auto904DF92E_ai < 0 && lv_foreachint_i >= auto904DF92E_ae) ) ; lv_foreachint_i += auto904DF92E_ai ) {
            libNtve_gf_CreatePingFacingAngle(PlayerGroupAll(), "PingArrow", libNtve_gf_PointOffsetTowardsPoint(libNtve_gf_CenterOfUnitGroup(lp_unitgroup), (lv_distbwpings * IntToFixed(lv_foreachint_i)), lp_endpoint), ColorWithAlpha(100.00, 0.00, 0.00, 24.71), lv_pinglifetime, AngleBetweenPoints(libNtve_gf_CenterOfUnitGroup(lp_unitgroup), lp_endpoint));
            PingSetScale(PingLastCreated(), 0.5);
            PingSetTooltip(PingLastCreated(), StringExternal("Param/Value/19D6601D"));

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/evolution/zevolutionhydralisk.sc2mapMapScript.galaxy:422

        }
        else {
            PingSetPosition(lp_pING, libNtve_gf_CenterOfUnitGroup(lp_gROUP));
            PingSetVisible(lp_pING, true);
        }

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zexpedition02.sc2mapMapScript.galaxy:969

    // Implementation
    while ((UnitGroupCount(lp_unitgroup, c_unitCountAlive) > 0)) {
        lv_distancebetweenlaunchandevac = DistanceBetweenPoints(libNtve_gf_CenterOfUnitGroup(lp_unitgroup), lp_endpoint);
        lv_distancechunks = FixedToInt((lv_distancebetweenlaunchandevac / lv_distbwpings));
        auto904DF92E_ae = lv_distancechunks;

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zexpedition02.sc2mapMapScript.galaxy:974

        lv_foreachint_i = 1;
        for ( ; ( (auto904DF92E_ai >= 0 && lv_foreachint_i <= auto904DF92E_ae) || (auto904DF92E_ai < 0 && lv_foreachint_i >= auto904DF92E_ae) ) ; lv_foreachint_i += auto904DF92E_ai ) {
            libNtve_gf_CreatePingFacingAngle(PlayerGroupAll(), "PingArrow", libNtve_gf_PointOffsetTowardsPoint(libNtve_gf_CenterOfUnitGroup(lp_unitgroup), (lv_distbwpings * IntToFixed(lv_foreachint_i)), lp_endpoint), ColorWithAlpha(100.00, 0.00, 0.00, 24.71), lv_pinglifetime, AngleBetweenPoints(libNtve_gf_CenterOfUnitGroup(lp_unitgroup), lp_endpoint));
            PingSetScale(PingLastCreated(), 0.5);
            PingSetTooltip(PingLastCreated(), StringExternal("Param/Value/19D6601D"));

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zexpedition02.sc2mapMapScript.galaxy:974

        lv_foreachint_i = 1;
        for ( ; ( (auto904DF92E_ai >= 0 && lv_foreachint_i <= auto904DF92E_ae) || (auto904DF92E_ai < 0 && lv_foreachint_i >= auto904DF92E_ae) ) ; lv_foreachint_i += auto904DF92E_ai ) {
            libNtve_gf_CreatePingFacingAngle(PlayerGroupAll(), "PingArrow", libNtve_gf_PointOffsetTowardsPoint(libNtve_gf_CenterOfUnitGroup(lp_unitgroup), (lv_distbwpings * IntToFixed(lv_foreachint_i)), lp_endpoint), ColorWithAlpha(100.00, 0.00, 0.00, 24.71), lv_pinglifetime, AngleBetweenPoints(libNtve_gf_CenterOfUnitGroup(lp_unitgroup), lp_endpoint));
            PingSetScale(PingLastCreated(), 0.5);
            PingSetTooltip(PingLastCreated(), StringExternal("Param/Value/19D6601D"));