# Center Of Unit Group

Grammar — Center of unitGroup
FlagsNative | Function

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

native point UnitGroupCenterOfGroup(unitgroup g);

Category: Unit Group / Groups

# Examples

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/evolution/zevolutionbaneling.sc2map/MapScript.galaxy:499


    // Implementation
    libSwaC_gf_CreateObjectivePing(true, UnitGroupCenterOfGroup(lp_unitGroup), StringExternal("Param/Value/138431EF"));
    lv_ping = PingLastCreated();
    while (!((UnitGroupCount(lp_unitGroup, c_unitCountAlive) == 0))) {

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/evolution/zevolutionmutalisk.sc2map/MapScript.galaxy:379

    }
    else {
        lv_centerPoint = UnitGroupCenterOfGroup(gv_broodLordsGroup);
    }
    autoCF462546_val = lp_type;

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/evolution/zevolutionmutalisk.sc2map/MapScript.galaxy:1022

    UnitGroupLoopEnd();
    gf_BroodLordPatrol(lv_feralUnits);
    libSwaC_gf_CreateObjectivePing(true, UnitGroupCenterOfGroup(gv_feralBroodLordsGroup), StringExternal("Param/Value/788E9A3C"));
    while ((UnitGroupCount(gv_feralBroodLordsGroup, c_unitCountAlive) > 0)) {
        PingSetPosition(PingLastCreated(), UnitGroupCenterOfGroup(gv_feralBroodLordsGroup));

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/evolution/zevolutionmutalisk.sc2map/MapScript.galaxy:1024

    libSwaC_gf_CreateObjectivePing(true, UnitGroupCenterOfGroup(gv_feralBroodLordsGroup), StringExternal("Param/Value/788E9A3C"));
    while ((UnitGroupCount(gv_feralBroodLordsGroup, c_unitCountAlive) > 0)) {
        PingSetPosition(PingLastCreated(), UnitGroupCenterOfGroup(gv_feralBroodLordsGroup));
        Wait(0.1, c_timeGame);
    }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/evolution/zevolutionmutalisk.sc2map/MapScript.galaxy:1209

    UnitGroupLoopBegin(gv_backupMutaliskGroup);
    for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
        UnitSetPosition(UnitGroupLoopCurrent(), PointWithOffset(PointWithOffset(UnitGroupCenterOfGroup(gv_broodLordsGroup), 4.0, 4.0), RandomFixed(-1.5, 1.5), RandomFixed(-1.5, 1.5)), false);
        libNtve_gf_PauseUnit(UnitGroupLoopCurrent(), false);
        libNtve_gf_ShowHideUnit(UnitGroupLoopCurrent(), true);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/evolution/zevolutionswarmhost.sc2map/MapScript.galaxy:334

    // Implementation
    while ((libNtve_gf_UnitGroupIsDead(lp_unitGroup) == false)) {
        PingSetPosition(lp_ping, UnitGroupCenterOfGroup(lp_unitGroup));
        Wait(0.1, c_timeGame);
    }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/evolution/zevolutionswarmhost.sc2map/MapScript.galaxy:1879

    UnitGroupLoopEnd();
    AIAttackWaveSend(gv_pLAYER_02_DOMINION, 0, true);
    libNtve_gf_CreatePingFacingAngle(PlayerGroupAll(), "PingWarning", UnitGroupCenterOfGroup(gv_dominionAttackGroup[1]), ColorWithAlpha(100.00, 0.00, 0.00, 0.00), 0.0, 270.0);
    PingSetTooltip(PingLastCreated(), StringExternal("Param/Value/4686565C"));
    gf_AttachPingtoUnitGroup(PingLastCreated(), gv_dominionAttackGroup[1]);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/evolution/zevolutionswarmhost.sc2map/MapScript.galaxy:1995

    UnitGroupLoopEnd();
    AIAttackWaveSend(gv_pLAYER_02_DOMINION, 0, true);
    libNtve_gf_CreatePingFacingAngle(PlayerGroupAll(), "PingWarning", UnitGroupCenterOfGroup(gv_dominionAttackGroup[2]), ColorWithAlpha(100.00, 0.00, 0.00, 0.00), 0.0, 270.0);
    PingSetTooltip(PingLastCreated(), StringExternal("Param/Value/460397DE"));
    gf_AttachPingtoUnitGroup(PingLastCreated(), gv_dominionAttackGroup[2]);

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

    lv_enemies = gf_EnemiesWithinRange(lp_diamondback, 4.0, UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))));
    if ((UnitGroupCount(lv_enemies, c_unitCountAlive) >= 1)) {
        lv_moveTo = PointWithOffsetPolar(UnitGetPosition(lp_diamondback), 5.0, AngleBetweenPoints(UnitGroupCenterOfGroup(lv_enemies), UnitGetPosition(lp_diamondback)));
        if ((PointPathingCost(UnitGetPosition(lp_diamondback), lv_moveTo) >= 1000)) {
            lv_moveToA = PointWithOffsetPolar(UnitGetPosition(lp_diamondback), 5.0, (AngleBetweenPoints(UnitGroupCenterOfGroup(lv_enemies), UnitGetPosition(lp_diamondback)) + 45.0));

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

        lv_moveTo = PointWithOffsetPolar(UnitGetPosition(lp_diamondback), 5.0, AngleBetweenPoints(UnitGroupCenterOfGroup(lv_enemies), UnitGetPosition(lp_diamondback)));
        if ((PointPathingCost(UnitGetPosition(lp_diamondback), lv_moveTo) >= 1000)) {
            lv_moveToA = PointWithOffsetPolar(UnitGetPosition(lp_diamondback), 5.0, (AngleBetweenPoints(UnitGroupCenterOfGroup(lv_enemies), UnitGetPosition(lp_diamondback)) + 45.0));
            lv_moveToB = PointWithOffsetPolar(UnitGetPosition(lp_diamondback), 5.0, (AngleBetweenPoints(UnitGroupCenterOfGroup(lv_enemies), UnitGetPosition(lp_diamondback)) - 45.0));
            if ((PointPathingCost(UnitGetPosition(lp_diamondback), lv_moveToA) < 1000) && (PointPathingCost(UnitGetPosition(lp_diamondback), lv_moveToB) < 1000)) {

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

        if ((PointPathingCost(UnitGetPosition(lp_diamondback), lv_moveTo) >= 1000)) {
            lv_moveToA = PointWithOffsetPolar(UnitGetPosition(lp_diamondback), 5.0, (AngleBetweenPoints(UnitGroupCenterOfGroup(lv_enemies), UnitGetPosition(lp_diamondback)) + 45.0));
            lv_moveToB = PointWithOffsetPolar(UnitGetPosition(lp_diamondback), 5.0, (AngleBetweenPoints(UnitGroupCenterOfGroup(lv_enemies), UnitGetPosition(lp_diamondback)) - 45.0));
            if ((PointPathingCost(UnitGetPosition(lp_diamondback), lv_moveToA) < 1000) && (PointPathingCost(UnitGetPosition(lp_diamondback), lv_moveToB) < 1000)) {
                autoD9320D5C_val = RandomInt(1, 2);

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

    }

    lv_center = UnitGroupCenterOfGroup(lp_army);
    lv_armyLeftGroup = UnitGroupCopy(lp_army);
    while ((libNtve_gf_UnitGroupIsDead(lv_armyLeftGroup) == false)) {

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


    }
    return UnitGroupCenterOfGroup(lv_maxCluster);
}

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


    if ((libHots_gf_DifficultyValueInt2(1, 1, 0) == 1)) {
        libNtve_gf_CreatePingFacingAngle(PlayerGroupAll(), "PingAlert", UnitGroupCenterOfGroup(AIWaveGetUnits(gv_cleanserWaves[lp_cleanserTeam])), ColorWithAlpha(100.00, 0.00, 0.00, 0.00), 0.0, 270.0);
        gv_cleanserTeamPings[lp_cleanserTeam] = PingLastCreated();
        TriggerEnable(gt_CleanserPingUpdate, true);

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

            lv_allDead = false;
            if ((gv_cleanserTeamPings[lv_index] != c_invalidPingId)) {
                PingSetPosition(gv_cleanserTeamPings[lv_index], UnitGroupCenterOfGroup(AIWaveGetUnits(gv_cleanserWaves[lv_index])));
                PingSetTooltip(gv_cleanserTeamPings[lv_index], StringExternal("Param/Value/62FF8DEB"));
                PingSetScale(gv_cleanserTeamPings[lv_index], 0.6);

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

        UnitGroupAdd(gv_introFungalGroup, UnitLastCreated());
    }
    lv_movePoint = UnitGroupCenterOfGroup(gv_introFungalGroup);
    UnitGroupIssueOrder(gv_introFungalGroup, OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(704)), c_orderQueueReplace);
    UnitGroupIssueOrder(gv_introFungalGroup, OrderTargetingPoint(AbilityCommand("move", 4), PointFromId(705)), c_orderQueueAddToEnd);

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

        }
        else {
            PingSetPosition(gv_killTeam01Ping, UnitGroupCenterOfGroup(gv_killTeam01));
            PingSetVisible(gv_killTeam01Ping, true);
            autoFC70B9EB_g = gv_killTeam01;

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

        }
        else {
            PingSetPosition(gv_killTeam02Ping, UnitGroupCenterOfGroup(gv_killTeam02));
            PingSetVisible(gv_killTeam02Ping, true);
            autoC20B8CB3_g = gv_killTeam02;

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

    lv_enemies = gf_EnemiesWithinRange(lp_diamondback, 4.0, UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))));
    if ((UnitGroupCount(lv_enemies, c_unitCountAlive) >= 1)) {
        lv_moveTo = PointWithOffsetPolar(UnitGetPosition(lp_diamondback), 5.0, AngleBetweenPoints(UnitGroupCenterOfGroup(lv_enemies), UnitGetPosition(lp_diamondback)));
        if ((PointPathingCost(UnitGetPosition(lp_diamondback), lv_moveTo) >= 1000)) {
            lv_moveToA = PointWithOffsetPolar(UnitGetPosition(lp_diamondback), 5.0, (AngleBetweenPoints(UnitGroupCenterOfGroup(lv_enemies), UnitGetPosition(lp_diamondback)) + 45.0));

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

        lv_moveTo = PointWithOffsetPolar(UnitGetPosition(lp_diamondback), 5.0, AngleBetweenPoints(UnitGroupCenterOfGroup(lv_enemies), UnitGetPosition(lp_diamondback)));
        if ((PointPathingCost(UnitGetPosition(lp_diamondback), lv_moveTo) >= 1000)) {
            lv_moveToA = PointWithOffsetPolar(UnitGetPosition(lp_diamondback), 5.0, (AngleBetweenPoints(UnitGroupCenterOfGroup(lv_enemies), UnitGetPosition(lp_diamondback)) + 45.0));
            lv_moveToB = PointWithOffsetPolar(UnitGetPosition(lp_diamondback), 5.0, (AngleBetweenPoints(UnitGroupCenterOfGroup(lv_enemies), UnitGetPosition(lp_diamondback)) - 45.0));
            if ((PointPathingCost(UnitGetPosition(lp_diamondback), lv_moveToA) < 1000) && (PointPathingCost(UnitGetPosition(lp_diamondback), lv_moveToB) < 1000)) {

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

        if ((PointPathingCost(UnitGetPosition(lp_diamondback), lv_moveTo) >= 1000)) {
            lv_moveToA = PointWithOffsetPolar(UnitGetPosition(lp_diamondback), 5.0, (AngleBetweenPoints(UnitGroupCenterOfGroup(lv_enemies), UnitGetPosition(lp_diamondback)) + 45.0));
            lv_moveToB = PointWithOffsetPolar(UnitGetPosition(lp_diamondback), 5.0, (AngleBetweenPoints(UnitGroupCenterOfGroup(lv_enemies), UnitGetPosition(lp_diamondback)) - 45.0));
            if ((PointPathingCost(UnitGetPosition(lp_diamondback), lv_moveToA) < 1000) && (PointPathingCost(UnitGetPosition(lp_diamondback), lv_moveToB) < 1000)) {
                auto016EB74F_val = RandomInt(1, 2);

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

    lv_enemies = gf_EnemiesWithinRange(lp_ghost, 12.0, UnitFilter(0, 0, (1 << c_targetFilterMissile) | (1 << c_targetFilterBuried), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterSummoned - 32))));
    if ((UnitGroupCount(lv_enemies, c_unitCountAlive) >= 8)) {
        UnitIssueOrder(lp_ghost, OrderTargetingPoint(AbilityCommand("TacNukeStrike", 0), UnitGroupCenterOfGroup(lv_enemies)), c_orderQueueReplace);
    }

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

    lv_enemies = gf_EnemiesWithinRange(lp_diamondback, 4.0, UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))));
    if ((UnitGroupCount(lv_enemies, c_unitCountAlive) >= 1)) {
        lv_moveTo = PointWithOffsetPolar(UnitGetPosition(lp_diamondback), 5.0, AngleBetweenPoints(UnitGroupCenterOfGroup(lv_enemies), UnitGetPosition(lp_diamondback)));
        if ((PointPathingCost(UnitGetPosition(lp_diamondback), lv_moveTo) >= 1000)) {
            lv_moveToA = PointWithOffsetPolar(UnitGetPosition(lp_diamondback), 5.0, (AngleBetweenPoints(UnitGroupCenterOfGroup(lv_enemies), UnitGetPosition(lp_diamondback)) + 45.0));

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

        lv_moveTo = PointWithOffsetPolar(UnitGetPosition(lp_diamondback), 5.0, AngleBetweenPoints(UnitGroupCenterOfGroup(lv_enemies), UnitGetPosition(lp_diamondback)));
        if ((PointPathingCost(UnitGetPosition(lp_diamondback), lv_moveTo) >= 1000)) {
            lv_moveToA = PointWithOffsetPolar(UnitGetPosition(lp_diamondback), 5.0, (AngleBetweenPoints(UnitGroupCenterOfGroup(lv_enemies), UnitGetPosition(lp_diamondback)) + 45.0));
            lv_moveToB = PointWithOffsetPolar(UnitGetPosition(lp_diamondback), 5.0, (AngleBetweenPoints(UnitGroupCenterOfGroup(lv_enemies), UnitGetPosition(lp_diamondback)) - 45.0));
            if ((PointPathingCost(UnitGetPosition(lp_diamondback), lv_moveToA) < 1000) && (PointPathingCost(UnitGetPosition(lp_diamondback), lv_moveToB) < 1000)) {

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

        if ((PointPathingCost(UnitGetPosition(lp_diamondback), lv_moveTo) >= 1000)) {
            lv_moveToA = PointWithOffsetPolar(UnitGetPosition(lp_diamondback), 5.0, (AngleBetweenPoints(UnitGroupCenterOfGroup(lv_enemies), UnitGetPosition(lp_diamondback)) + 45.0));
            lv_moveToB = PointWithOffsetPolar(UnitGetPosition(lp_diamondback), 5.0, (AngleBetweenPoints(UnitGroupCenterOfGroup(lv_enemies), UnitGetPosition(lp_diamondback)) - 45.0));
            if ((PointPathingCost(UnitGetPosition(lp_diamondback), lv_moveToA) < 1000) && (PointPathingCost(UnitGetPosition(lp_diamondback), lv_moveToB) < 1000)) {
                auto8C0D3942_val = RandomInt(1, 2);

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

    }
    libNtve_gf_CreatePingFacingAngle(PlayerGroupAll(), "PingAlert", PointFromId(809), ColorWithAlpha(100.00, 0.00, 0.00, 0.00), 0.0, 270.0);
    PingSetPosition(PingLastCreated(), UnitGroupCenterOfGroup(lv_attackGroup));
    PingSetTooltip(PingLastCreated(), StringExternal("Param/Value/47B5F2AE"));
    while (true) {

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

    }
    else {
        PingSetPosition(PingLastCreated(), UnitGroupCenterOfGroup(lv_attackGroup));
    }
    while (true) {

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

        }

        PingSetPosition(PingLastCreated(), UnitGroupCenterOfGroup(lv_attackGroup));
    }
    return true;

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

    }
    libNtve_gf_CreatePingFacingAngle(PlayerGroupAll(), "PingAlert", PointFromId(809), ColorWithAlpha(100.00, 0.00, 0.00, 0.00), 0.0, 270.0);
    PingSetPosition(PingLastCreated(), UnitGroupCenterOfGroup(lv_attackGroup));
    PingSetTooltip(PingLastCreated(), StringExternal("Param/Value/5AF16DC3"));
    while (true) {

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

    }
    else {
        PingSetPosition(PingLastCreated(), UnitGroupCenterOfGroup(lv_attackGroup));
    }
    while (true) {

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

        }

        PingSetPosition(PingLastCreated(), UnitGroupCenterOfGroup(lv_attackGroup));
    }
    return true;

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zlab02.sc2map/MapScript.galaxy:3735

        UnitIssueOrder(auto3D76EFAA_var, OrderTargetingPoint(AbilityCommand("attack", 0), PointFromId(850)), c_orderQueueReplace);
    }
    while (!(((UnitGroupCount(gv_s1_BridgeCrushingGripUmojan, c_unitCountAlive) == 0) || (DistanceBetweenPoints(UnitGetPosition(gv_kerrigan), UnitGroupCenterOfGroup(gv_s1_BridgeCrushingGripUmojan)) < 2.0)))) {
        Wait(0.25, c_timeGame);
    }

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


        }
        if ((((lv_visible == true) && (DistanceBetweenPoints(UnitGroupCenterOfGroup(gv_aIHarvestGroups[lp_teamIndex]), UnitGetPosition(gv_corpse_PerCamp[gv_aIHarvestCamps[lp_teamIndex]])) <= 10.0)) || (lv_allVisible == true))) {
            break;
        }

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

        else {
            if ((lv_warningPing == c_invalidPingId)) {
                libNtve_gf_CreatePingFacingAngle(PlayerGroupAll(), "PingWarning", UnitGroupCenterOfGroup(gv_aIHarvestGroups[lp_teamIndex]), ColorWithAlpha(100.00, 0.00, 0.00, 0.00), 0.0, 270.0);
                lv_warningPing = PingLastCreated();
                PingSetTooltip(PingLastCreated(), StringExternal("Param/Value/4142730A"));

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

            }
            else {
                PingSetPosition(lv_warningPing, UnitGroupCenterOfGroup(gv_aIHarvestGroups[lp_teamIndex]));
            }
        }

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

    lv_harvesterIndex = gv_currentHarvestIndex;
    lv_campIndex = gv_aIHarvestCamps[lv_harvesterIndex];
    while (!(((libNtve_gf_UnitGroupIsDead(gv_aIHarvestGroups[lv_harvesterIndex]) == true) || (DistanceBetweenPoints(UnitGroupCenterOfGroup(gv_aIHarvestGroups[lv_harvesterIndex]), UnitGetPosition(gv_corpse_PerCamp[lv_campIndex])) <= 45.0)))) {
        Wait(1.0, c_timeGame);
    }

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

    TriggerQueueEnter();
    autoA03B2E99_at = 0;
    while (!(((libNtve_gf_UnitGroupIsDead(gv_aIHarvestGroups[lv_harvesterIndex]) == true) || (DistanceBetweenPoints(UnitGroupCenterOfGroup(gv_aIHarvestGroups[lv_harvesterIndex]), RegionGetCenter(gv_quillgorCampRegions[lv_campIndex])) <= 35.0))) && autoA03B2E99_at <= 5.0) {
        Wait(1.0, c_timeGame);
        autoA03B2E99_at = autoA03B2E99_at + 1.0;

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/voidprologue/voidprologue01.sc2map/MapScript.galaxy:503


    // Implementation
    libNtve_gf_CreatePingFacingAngle(PlayerGroupAll(), "PingAlert", UnitGroupCenterOfGroup(lp_unitGroup), ColorWithAlpha(100.00, 0.00, 0.00, 0.00), 0.0, 270.0);
    lv_groupPing = PingLastCreated();
    PingSetScale(PingLastCreated(), 0.75);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/voidprologue/voidprologue01.sc2map/MapScript.galaxy:509

    while ((gv_gameOver == false)) {
        if ((UnitGroupCount(lp_unitGroup, c_unitCountAlive) > 0)) {
            PingSetPosition(lv_groupPing, UnitGroupCenterOfGroup(lp_unitGroup));
        }
        else {

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/voidprologue/voidprologue01.sc2map/MapScript.galaxy:3328

    lv_triggeringWave = EventPlayerWave();
    lv_triggeringWaveGroup = AIWaveGetUnits(lv_triggeringWave);
    libNtve_gf_CreatePingFacingAngle(PlayerGroupAll(), "PingBoss", UnitGroupCenterOfGroup(lv_triggeringWaveGroup), ColorWithAlpha(100.00, 0.00, 0.00, 0.00), 30.0, 270.0);
    gv_pingAttack = PingLastCreated();
    PingSetScale(PingLastCreated(), 0.75);

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/voidprologue/voidprologue01.sc2map/MapScript.galaxy:3341

    }
    while ((UnitGroupCount(lv_triggeringWaveGroup, c_unitCountAlive) > 0) && (TimerGetRemaining(lv_pingTimer) > 0.0)) {
        PingSetPosition(gv_pingAttack, UnitGroupCenterOfGroup(lv_triggeringWaveGroup));
        Wait(0.25, c_timeGame);
    }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/voidprologue/voidprologue02.sc2map/MapScript.galaxy:2456

    UnitGroupAddUnitGroup(lv_availableZealots, UnitGroup("Zealot", gv_pLAYER_03_TALDARIM, RegionFromId(29), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
    lv_playersUnits = UnitGroup(null, gv_pLAYER_01_USER, RegionFromId(29), UnitFilter(0, 0, (1 << c_targetFilterAir) | (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
    lv_chosenZealot = UnitGroupClosestToPoint(lv_availableZealots, UnitGroupCenterOfGroup(lv_playersUnits));
    if ((lv_chosenZealot == null)) {
        return true;

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/voidprologue/voidprologue02.sc2map/MapScript.galaxy:2461

    }
    else {
        UnitIssueOrder(lv_chosenZealot, OrderTargetingPoint(AbilityCommand("attack", 0), UnitGroupCenterOfGroup(lv_playersUnits)), c_orderQueueReplace);
    }
    TriggerQueueEnter();

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/voidprologue/voidprologue02.sc2map/MapScript.galaxy:2521

    UnitGroupAddUnitGroup(lv_availableZealots, UnitGroup("Zealot", gv_pLAYER_04_TALDARIM, RegionFromId(30), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
    lv_playersUnits = UnitGroup(null, gv_pLAYER_01_USER, RegionFromId(30), UnitFilter(0, 0, (1 << c_targetFilterAir) | (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
    lv_chosenZealot = UnitGroupClosestToPoint(lv_availableZealots, UnitGroupCenterOfGroup(lv_playersUnits));
    if ((lv_chosenZealot == null)) {
        return true;

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/voidprologue/voidprologue02.sc2map/MapScript.galaxy:2526

    }
    else {
        UnitIssueOrder(lv_chosenZealot, OrderTargetingPoint(AbilityCommand("attack", 0), UnitGroupCenterOfGroup(lv_playersUnits)), c_orderQueueReplace);
    }
    TriggerQueueEnter();

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/voidprologue/voidprologue02.sc2map/MapScript.galaxy:2586

    UnitGroupAddUnitGroup(lv_availableZealots, UnitGroup("Zealot", gv_pLAYER_05_TALDARIM, RegionFromId(31), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
    lv_playersUnits = UnitGroup(null, gv_pLAYER_01_USER, RegionFromId(31), UnitFilter(0, 0, (1 << c_targetFilterAir) | (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
    lv_chosenZealot = UnitGroupClosestToPoint(lv_availableZealots, UnitGroupCenterOfGroup(lv_playersUnits));
    if ((lv_chosenZealot == null)) {
        return true;

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/voidprologue/voidprologue02.sc2map/MapScript.galaxy:2591

    }
    else {
        UnitIssueOrder(lv_chosenZealot, OrderTargetingPoint(AbilityCommand("attack", 0), UnitGroupCenterOfGroup(lv_playersUnits)), c_orderQueueReplace);
    }
    TriggerQueueEnter();

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

    if ((libA3DDD02B_gf_DifficultyValuePrologueBoolean(false, false, true, true) == true) && (UnitGroupCount(UnitGroup(null, gv_pLAYER_01_USER, RegionFromId(21), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) > 0)) {
        Wait(1.0, c_timeGame);
        UnitIssueOrder(UnitFromId(642), OrderTargetingPoint(AbilityCommand("PsiStorm", 0), UnitGroupCenterOfGroup(UnitGroup(null, gv_pLAYER_01_USER, RegionFromId(21), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0))), c_orderQueueReplace);
    }

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

    if ((libA3DDD02B_gf_DifficultyValuePrologueInteger(0, 0, 1, 1) == 1)) {
        Wait(1.0, c_timeGame);
        UnitIssueOrder(UnitFromId(599), OrderTargetingPoint(AbilityCommand("PsiStorm", 0), UnitGroupCenterOfGroup(UnitGroup(null, gv_pLAYER_01_USER, RegionFromId(55), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0))), c_orderQueueReplace);
    }

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

        if ((libA3DDD02B_gf_DifficultyValuePrologueInteger(0, 0, 1, 1) == 1)) {
            UnitIssueOrder(UnitGroupUnit(lv_remainingAscendants, 1), OrderTargetingPoint(AbilityCommand("PsiStorm", 0), UnitGetPosition(UnitGroupClosestToPoint(UnitGroup(null, gv_pLAYER_01_USER, RegionFromId(52), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), UnitGetPosition(UnitGroupUnit(lv_remainingAscendants, 1))))), c_orderQueueReplace);
            UnitIssueOrder(UnitGroupUnit(lv_remainingAscendants, 2), OrderTargetingPoint(AbilityCommand("PsiStorm", 0), UnitGroupCenterOfGroup(UnitGroup(null, gv_pLAYER_01_USER, RegionFromId(52), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0))), c_orderQueueReplace);
        }

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/evolution/zevolutionbaneling.sc2mapMapScript.galaxy:499


    // Implementation
    libSwaC_gf_CreateObjectivePing(true, UnitGroupCenterOfGroup(lp_unitGroup), StringExternal("Param/Value/138431EF"));
    lv_ping = PingLastCreated();
    while (!((UnitGroupCount(lp_unitGroup, c_unitCountAlive) == 0))) {

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/evolution/zevolutionmutalisk.sc2mapMapScript.galaxy:379

    }
    else {
        lv_centerPoint = UnitGroupCenterOfGroup(gv_broodLordsGroup);
    }
    autoCF462546_val = lp_type;

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/evolution/zevolutionmutalisk.sc2mapMapScript.galaxy:1022

    UnitGroupLoopEnd();
    gf_BroodLordPatrol(lv_feralUnits);
    libSwaC_gf_CreateObjectivePing(true, UnitGroupCenterOfGroup(gv_feralBroodLordsGroup), StringExternal("Param/Value/788E9A3C"));
    while ((UnitGroupCount(gv_feralBroodLordsGroup, c_unitCountAlive) > 0)) {
        PingSetPosition(PingLastCreated(), UnitGroupCenterOfGroup(gv_feralBroodLordsGroup));

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/evolution/zevolutionmutalisk.sc2mapMapScript.galaxy:1024

    libSwaC_gf_CreateObjectivePing(true, UnitGroupCenterOfGroup(gv_feralBroodLordsGroup), StringExternal("Param/Value/788E9A3C"));
    while ((UnitGroupCount(gv_feralBroodLordsGroup, c_unitCountAlive) > 0)) {
        PingSetPosition(PingLastCreated(), UnitGroupCenterOfGroup(gv_feralBroodLordsGroup));
        Wait(0.1, c_timeGame);
    }

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/evolution/zevolutionmutalisk.sc2mapMapScript.galaxy:1209

    UnitGroupLoopBegin(gv_backupMutaliskGroup);
    for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
        UnitSetPosition(UnitGroupLoopCurrent(), PointWithOffset(PointWithOffset(UnitGroupCenterOfGroup(gv_broodLordsGroup), 4.0, 4.0), RandomFixed(-1.5, 1.5), RandomFixed(-1.5, 1.5)), false);
        libNtve_gf_PauseUnit(UnitGroupLoopCurrent(), false);
        libNtve_gf_ShowHideUnit(UnitGroupLoopCurrent(), true);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/evolution/zevolutionswarmhost.sc2mapMapScript.galaxy:334

    // Implementation
    while ((libNtve_gf_UnitGroupIsDead(lp_unitGroup) == false)) {
        PingSetPosition(lp_ping, UnitGroupCenterOfGroup(lp_unitGroup));
        Wait(0.1, c_timeGame);
    }

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/evolution/zevolutionswarmhost.sc2mapMapScript.galaxy:1879

    UnitGroupLoopEnd();
    AIAttackWaveSend(gv_pLAYER_02_DOMINION, 0, true);
    libNtve_gf_CreatePingFacingAngle(PlayerGroupAll(), "PingWarning", UnitGroupCenterOfGroup(gv_dominionAttackGroup[1]), ColorWithAlpha(100.00, 0.00, 0.00, 0.00), 0.0, 270.0);
    PingSetTooltip(PingLastCreated(), StringExternal("Param/Value/4686565C"));
    gf_AttachPingtoUnitGroup(PingLastCreated(), gv_dominionAttackGroup[1]);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/evolution/zevolutionswarmhost.sc2mapMapScript.galaxy:1995

    UnitGroupLoopEnd();
    AIAttackWaveSend(gv_pLAYER_02_DOMINION, 0, true);
    libNtve_gf_CreatePingFacingAngle(PlayerGroupAll(), "PingWarning", UnitGroupCenterOfGroup(gv_dominionAttackGroup[2]), ColorWithAlpha(100.00, 0.00, 0.00, 0.00), 0.0, 270.0);
    PingSetTooltip(PingLastCreated(), StringExternal("Param/Value/460397DE"));
    gf_AttachPingtoUnitGroup(PingLastCreated(), gv_dominionAttackGroup[2]);

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

    lv_enemies = gf_EnemiesWithinRange(lp_diamondback, 4.0, UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))));
    if ((UnitGroupCount(lv_enemies, c_unitCountAlive) >= 1)) {
        lv_moveTo = PointWithOffsetPolar(UnitGetPosition(lp_diamondback), 5.0, AngleBetweenPoints(UnitGroupCenterOfGroup(lv_enemies), UnitGetPosition(lp_diamondback)));
        if ((PointPathingCost(UnitGetPosition(lp_diamondback), lv_moveTo) >= 1000)) {
            lv_moveToA = PointWithOffsetPolar(UnitGetPosition(lp_diamondback), 5.0, (AngleBetweenPoints(UnitGroupCenterOfGroup(lv_enemies), UnitGetPosition(lp_diamondback)) + 45.0));

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

        lv_moveTo = PointWithOffsetPolar(UnitGetPosition(lp_diamondback), 5.0, AngleBetweenPoints(UnitGroupCenterOfGroup(lv_enemies), UnitGetPosition(lp_diamondback)));
        if ((PointPathingCost(UnitGetPosition(lp_diamondback), lv_moveTo) >= 1000)) {
            lv_moveToA = PointWithOffsetPolar(UnitGetPosition(lp_diamondback), 5.0, (AngleBetweenPoints(UnitGroupCenterOfGroup(lv_enemies), UnitGetPosition(lp_diamondback)) + 45.0));
            lv_moveToB = PointWithOffsetPolar(UnitGetPosition(lp_diamondback), 5.0, (AngleBetweenPoints(UnitGroupCenterOfGroup(lv_enemies), UnitGetPosition(lp_diamondback)) - 45.0));
            if ((PointPathingCost(UnitGetPosition(lp_diamondback), lv_moveToA) < 1000) && (PointPathingCost(UnitGetPosition(lp_diamondback), lv_moveToB) < 1000)) {

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

        if ((PointPathingCost(UnitGetPosition(lp_diamondback), lv_moveTo) >= 1000)) {
            lv_moveToA = PointWithOffsetPolar(UnitGetPosition(lp_diamondback), 5.0, (AngleBetweenPoints(UnitGroupCenterOfGroup(lv_enemies), UnitGetPosition(lp_diamondback)) + 45.0));
            lv_moveToB = PointWithOffsetPolar(UnitGetPosition(lp_diamondback), 5.0, (AngleBetweenPoints(UnitGroupCenterOfGroup(lv_enemies), UnitGetPosition(lp_diamondback)) - 45.0));
            if ((PointPathingCost(UnitGetPosition(lp_diamondback), lv_moveToA) < 1000) && (PointPathingCost(UnitGetPosition(lp_diamondback), lv_moveToB) < 1000)) {
                autoD9320D5C_val = RandomInt(1, 2);

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

    }

    lv_center = UnitGroupCenterOfGroup(lp_army);
    lv_armyLeftGroup = UnitGroupCopy(lp_army);
    while ((libNtve_gf_UnitGroupIsDead(lv_armyLeftGroup) == false)) {

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


    }
    return UnitGroupCenterOfGroup(lv_maxCluster);
}

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zhybrid01.sc2mapMapScript.galaxy:677


    if ((libHots_gf_DifficultyValueInt2(1, 1, 0) == 1)) {
        libNtve_gf_CreatePingFacingAngle(PlayerGroupAll(), "PingAlert", UnitGroupCenterOfGroup(AIWaveGetUnits(gv_cleanserWaves[lp_cleanserTeam])), ColorWithAlpha(100.00, 0.00, 0.00, 0.00), 0.0, 270.0);
        gv_cleanserTeamPings[lp_cleanserTeam] = PingLastCreated();
        TriggerEnable(gt_CleanserPingUpdate, true);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zhybrid01.sc2mapMapScript.galaxy:4703

            lv_allDead = false;
            if ((gv_cleanserTeamPings[lv_index] != c_invalidPingId)) {
                PingSetPosition(gv_cleanserTeamPings[lv_index], UnitGroupCenterOfGroup(AIWaveGetUnits(gv_cleanserWaves[lv_index])));
                PingSetTooltip(gv_cleanserTeamPings[lv_index], StringExternal("Param/Value/62FF8DEB"));
                PingSetScale(gv_cleanserTeamPings[lv_index], 0.6);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zhybrid01.sc2mapMapScript.galaxy:6476

        UnitGroupAdd(gv_introFungalGroup, UnitLastCreated());
    }
    lv_movePoint = UnitGroupCenterOfGroup(gv_introFungalGroup);
    UnitGroupIssueOrder(gv_introFungalGroup, OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(704)), c_orderQueueReplace);
    UnitGroupIssueOrder(gv_introFungalGroup, OrderTargetingPoint(AbilityCommand("move", 4), PointFromId(705)), c_orderQueueAddToEnd);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zkorhal01.sc2mapMapScript.galaxy:4440

        }
        else {
            PingSetPosition(gv_killTeam01Ping, UnitGroupCenterOfGroup(gv_killTeam01));
            PingSetVisible(gv_killTeam01Ping, true);
            autoFC70B9EB_g = gv_killTeam01;

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zkorhal01.sc2mapMapScript.galaxy:4492

        }
        else {
            PingSetPosition(gv_killTeam02Ping, UnitGroupCenterOfGroup(gv_killTeam02));
            PingSetVisible(gv_killTeam02Ping, true);
            autoC20B8CB3_g = gv_killTeam02;

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zkorhal02.sc2mapMapScript.galaxy:803

    lv_enemies = gf_EnemiesWithinRange(lp_diamondback, 4.0, UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))));
    if ((UnitGroupCount(lv_enemies, c_unitCountAlive) >= 1)) {
        lv_moveTo = PointWithOffsetPolar(UnitGetPosition(lp_diamondback), 5.0, AngleBetweenPoints(UnitGroupCenterOfGroup(lv_enemies), UnitGetPosition(lp_diamondback)));
        if ((PointPathingCost(UnitGetPosition(lp_diamondback), lv_moveTo) >= 1000)) {
            lv_moveToA = PointWithOffsetPolar(UnitGetPosition(lp_diamondback), 5.0, (AngleBetweenPoints(UnitGroupCenterOfGroup(lv_enemies), UnitGetPosition(lp_diamondback)) + 45.0));

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zkorhal02.sc2mapMapScript.galaxy:805

        lv_moveTo = PointWithOffsetPolar(UnitGetPosition(lp_diamondback), 5.0, AngleBetweenPoints(UnitGroupCenterOfGroup(lv_enemies), UnitGetPosition(lp_diamondback)));
        if ((PointPathingCost(UnitGetPosition(lp_diamondback), lv_moveTo) >= 1000)) {
            lv_moveToA = PointWithOffsetPolar(UnitGetPosition(lp_diamondback), 5.0, (AngleBetweenPoints(UnitGroupCenterOfGroup(lv_enemies), UnitGetPosition(lp_diamondback)) + 45.0));
            lv_moveToB = PointWithOffsetPolar(UnitGetPosition(lp_diamondback), 5.0, (AngleBetweenPoints(UnitGroupCenterOfGroup(lv_enemies), UnitGetPosition(lp_diamondback)) - 45.0));
            if ((PointPathingCost(UnitGetPosition(lp_diamondback), lv_moveToA) < 1000) && (PointPathingCost(UnitGetPosition(lp_diamondback), lv_moveToB) < 1000)) {

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zkorhal02.sc2mapMapScript.galaxy:806

        if ((PointPathingCost(UnitGetPosition(lp_diamondback), lv_moveTo) >= 1000)) {
            lv_moveToA = PointWithOffsetPolar(UnitGetPosition(lp_diamondback), 5.0, (AngleBetweenPoints(UnitGroupCenterOfGroup(lv_enemies), UnitGetPosition(lp_diamondback)) + 45.0));
            lv_moveToB = PointWithOffsetPolar(UnitGetPosition(lp_diamondback), 5.0, (AngleBetweenPoints(UnitGroupCenterOfGroup(lv_enemies), UnitGetPosition(lp_diamondback)) - 45.0));
            if ((PointPathingCost(UnitGetPosition(lp_diamondback), lv_moveToA) < 1000) && (PointPathingCost(UnitGetPosition(lp_diamondback), lv_moveToB) < 1000)) {
                auto016EB74F_val = RandomInt(1, 2);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zkorhal02.sc2mapMapScript.galaxy:854

    lv_enemies = gf_EnemiesWithinRange(lp_ghost, 12.0, UnitFilter(0, 0, (1 << c_targetFilterMissile) | (1 << c_targetFilterBuried), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32)) | (1 << (c_targetFilterSummoned - 32))));
    if ((UnitGroupCount(lv_enemies, c_unitCountAlive) >= 8)) {
        UnitIssueOrder(lp_ghost, OrderTargetingPoint(AbilityCommand("TacNukeStrike", 0), UnitGroupCenterOfGroup(lv_enemies)), c_orderQueueReplace);
    }

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zkorhal03.sc2mapMapScript.galaxy:506

    lv_enemies = gf_EnemiesWithinRange(lp_diamondback, 4.0, UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))));
    if ((UnitGroupCount(lv_enemies, c_unitCountAlive) >= 1)) {
        lv_moveTo = PointWithOffsetPolar(UnitGetPosition(lp_diamondback), 5.0, AngleBetweenPoints(UnitGroupCenterOfGroup(lv_enemies), UnitGetPosition(lp_diamondback)));
        if ((PointPathingCost(UnitGetPosition(lp_diamondback), lv_moveTo) >= 1000)) {
            lv_moveToA = PointWithOffsetPolar(UnitGetPosition(lp_diamondback), 5.0, (AngleBetweenPoints(UnitGroupCenterOfGroup(lv_enemies), UnitGetPosition(lp_diamondback)) + 45.0));

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zkorhal03.sc2mapMapScript.galaxy:508

        lv_moveTo = PointWithOffsetPolar(UnitGetPosition(lp_diamondback), 5.0, AngleBetweenPoints(UnitGroupCenterOfGroup(lv_enemies), UnitGetPosition(lp_diamondback)));
        if ((PointPathingCost(UnitGetPosition(lp_diamondback), lv_moveTo) >= 1000)) {
            lv_moveToA = PointWithOffsetPolar(UnitGetPosition(lp_diamondback), 5.0, (AngleBetweenPoints(UnitGroupCenterOfGroup(lv_enemies), UnitGetPosition(lp_diamondback)) + 45.0));
            lv_moveToB = PointWithOffsetPolar(UnitGetPosition(lp_diamondback), 5.0, (AngleBetweenPoints(UnitGroupCenterOfGroup(lv_enemies), UnitGetPosition(lp_diamondback)) - 45.0));
            if ((PointPathingCost(UnitGetPosition(lp_diamondback), lv_moveToA) < 1000) && (PointPathingCost(UnitGetPosition(lp_diamondback), lv_moveToB) < 1000)) {

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zkorhal03.sc2mapMapScript.galaxy:509

        if ((PointPathingCost(UnitGetPosition(lp_diamondback), lv_moveTo) >= 1000)) {
            lv_moveToA = PointWithOffsetPolar(UnitGetPosition(lp_diamondback), 5.0, (AngleBetweenPoints(UnitGroupCenterOfGroup(lv_enemies), UnitGetPosition(lp_diamondback)) + 45.0));
            lv_moveToB = PointWithOffsetPolar(UnitGetPosition(lp_diamondback), 5.0, (AngleBetweenPoints(UnitGroupCenterOfGroup(lv_enemies), UnitGetPosition(lp_diamondback)) - 45.0));
            if ((PointPathingCost(UnitGetPosition(lp_diamondback), lv_moveToA) < 1000) && (PointPathingCost(UnitGetPosition(lp_diamondback), lv_moveToB) < 1000)) {
                auto8C0D3942_val = RandomInt(1, 2);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zkorhal03.sc2mapMapScript.galaxy:3643

    }
    libNtve_gf_CreatePingFacingAngle(PlayerGroupAll(), "PingAlert", PointFromId(809), ColorWithAlpha(100.00, 0.00, 0.00, 0.00), 0.0, 270.0);
    PingSetPosition(PingLastCreated(), UnitGroupCenterOfGroup(lv_attackGroup));
    PingSetTooltip(PingLastCreated(), StringExternal("Param/Value/47B5F2AE"));
    while (true) {

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zkorhal03.sc2mapMapScript.galaxy:3679

    }
    else {
        PingSetPosition(PingLastCreated(), UnitGroupCenterOfGroup(lv_attackGroup));
    }
    while (true) {

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zkorhal03.sc2mapMapScript.galaxy:3698

        }

        PingSetPosition(PingLastCreated(), UnitGroupCenterOfGroup(lv_attackGroup));
    }
    return true;

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zkorhal03.sc2mapMapScript.galaxy:3768

    }
    libNtve_gf_CreatePingFacingAngle(PlayerGroupAll(), "PingAlert", PointFromId(809), ColorWithAlpha(100.00, 0.00, 0.00, 0.00), 0.0, 270.0);
    PingSetPosition(PingLastCreated(), UnitGroupCenterOfGroup(lv_attackGroup));
    PingSetTooltip(PingLastCreated(), StringExternal("Param/Value/5AF16DC3"));
    while (true) {

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zkorhal03.sc2mapMapScript.galaxy:3804

    }
    else {
        PingSetPosition(PingLastCreated(), UnitGroupCenterOfGroup(lv_attackGroup));
    }
    while (true) {

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zkorhal03.sc2mapMapScript.galaxy:3823

        }

        PingSetPosition(PingLastCreated(), UnitGroupCenterOfGroup(lv_attackGroup));
    }
    return true;

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab02.sc2mapMapScript.galaxy:3735

        UnitIssueOrder(auto3D76EFAA_var, OrderTargetingPoint(AbilityCommand("attack", 0), PointFromId(850)), c_orderQueueReplace);
    }
    while (!(((UnitGroupCount(gv_s1_BridgeCrushingGripUmojan, c_unitCountAlive) == 0) || (DistanceBetweenPoints(UnitGetPosition(gv_kerrigan), UnitGroupCenterOfGroup(gv_s1_BridgeCrushingGripUmojan)) < 2.0)))) {
        Wait(0.25, c_timeGame);
    }

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus01.sc2mapMapScript.galaxy:1159


        }
        if ((((lv_visible == true) && (DistanceBetweenPoints(UnitGroupCenterOfGroup(gv_aIHarvestGroups[lp_teamIndex]), UnitGetPosition(gv_corpse_PerCamp[gv_aIHarvestCamps[lp_teamIndex]])) <= 10.0)) || (lv_allVisible == true))) {
            break;
        }

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus01.sc2mapMapScript.galaxy:1164

        else {
            if ((lv_warningPing == c_invalidPingId)) {
                libNtve_gf_CreatePingFacingAngle(PlayerGroupAll(), "PingWarning", UnitGroupCenterOfGroup(gv_aIHarvestGroups[lp_teamIndex]), ColorWithAlpha(100.00, 0.00, 0.00, 0.00), 0.0, 270.0);
                lv_warningPing = PingLastCreated();
                PingSetTooltip(PingLastCreated(), StringExternal("Param/Value/4142730A"));

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus01.sc2mapMapScript.galaxy:1169

            }
            else {
                PingSetPosition(lv_warningPing, UnitGroupCenterOfGroup(gv_aIHarvestGroups[lp_teamIndex]));
            }
        }

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus01.sc2mapMapScript.galaxy:4618

    lv_harvesterIndex = gv_currentHarvestIndex;
    lv_campIndex = gv_aIHarvestCamps[lv_harvesterIndex];
    while (!(((libNtve_gf_UnitGroupIsDead(gv_aIHarvestGroups[lv_harvesterIndex]) == true) || (DistanceBetweenPoints(UnitGroupCenterOfGroup(gv_aIHarvestGroups[lv_harvesterIndex]), UnitGetPosition(gv_corpse_PerCamp[lv_campIndex])) <= 45.0)))) {
        Wait(1.0, c_timeGame);
    }

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus01.sc2mapMapScript.galaxy:4627

    TriggerQueueEnter();
    autoA03B2E99_at = 0;
    while (!(((libNtve_gf_UnitGroupIsDead(gv_aIHarvestGroups[lv_harvesterIndex]) == true) || (DistanceBetweenPoints(UnitGroupCenterOfGroup(gv_aIHarvestGroups[lv_harvesterIndex]), RegionGetCenter(gv_quillgorCampRegions[lv_campIndex])) <= 35.0))) && autoA03B2E99_at <= 5.0) {
        Wait(1.0, c_timeGame);
        autoA03B2E99_at = autoA03B2E99_at + 1.0;

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/voidprologue/voidprologue01.sc2mapMapScript.galaxy:503


    // Implementation
    libNtve_gf_CreatePingFacingAngle(PlayerGroupAll(), "PingAlert", UnitGroupCenterOfGroup(lp_unitGroup), ColorWithAlpha(100.00, 0.00, 0.00, 0.00), 0.0, 270.0);
    lv_groupPing = PingLastCreated();
    PingSetScale(PingLastCreated(), 0.75);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/voidprologue/voidprologue01.sc2mapMapScript.galaxy:509

    while ((gv_gameOver == false)) {
        if ((UnitGroupCount(lp_unitGroup, c_unitCountAlive) > 0)) {
            PingSetPosition(lv_groupPing, UnitGroupCenterOfGroup(lp_unitGroup));
        }
        else {

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/voidprologue/voidprologue01.sc2mapMapScript.galaxy:3328

    lv_triggeringWave = EventPlayerWave();
    lv_triggeringWaveGroup = AIWaveGetUnits(lv_triggeringWave);
    libNtve_gf_CreatePingFacingAngle(PlayerGroupAll(), "PingBoss", UnitGroupCenterOfGroup(lv_triggeringWaveGroup), ColorWithAlpha(100.00, 0.00, 0.00, 0.00), 30.0, 270.0);
    gv_pingAttack = PingLastCreated();
    PingSetScale(PingLastCreated(), 0.75);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/voidprologue/voidprologue01.sc2mapMapScript.galaxy:3341

    }
    while ((UnitGroupCount(lv_triggeringWaveGroup, c_unitCountAlive) > 0) && (TimerGetRemaining(lv_pingTimer) > 0.0)) {
        PingSetPosition(gv_pingAttack, UnitGroupCenterOfGroup(lv_triggeringWaveGroup));
        Wait(0.25, c_timeGame);
    }

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/voidprologue/voidprologue02.sc2mapMapScript.galaxy:2456

    UnitGroupAddUnitGroup(lv_availableZealots, UnitGroup("Zealot", gv_pLAYER_03_TALDARIM, RegionFromId(29), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
    lv_playersUnits = UnitGroup(null, gv_pLAYER_01_USER, RegionFromId(29), UnitFilter(0, 0, (1 << c_targetFilterAir) | (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
    lv_chosenZealot = UnitGroupClosestToPoint(lv_availableZealots, UnitGroupCenterOfGroup(lv_playersUnits));
    if ((lv_chosenZealot == null)) {
        return true;

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/voidprologue/voidprologue02.sc2mapMapScript.galaxy:2461

    }
    else {
        UnitIssueOrder(lv_chosenZealot, OrderTargetingPoint(AbilityCommand("attack", 0), UnitGroupCenterOfGroup(lv_playersUnits)), c_orderQueueReplace);
    }
    TriggerQueueEnter();

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/voidprologue/voidprologue02.sc2mapMapScript.galaxy:2521

    UnitGroupAddUnitGroup(lv_availableZealots, UnitGroup("Zealot", gv_pLAYER_04_TALDARIM, RegionFromId(30), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
    lv_playersUnits = UnitGroup(null, gv_pLAYER_01_USER, RegionFromId(30), UnitFilter(0, 0, (1 << c_targetFilterAir) | (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
    lv_chosenZealot = UnitGroupClosestToPoint(lv_availableZealots, UnitGroupCenterOfGroup(lv_playersUnits));
    if ((lv_chosenZealot == null)) {
        return true;

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/voidprologue/voidprologue02.sc2mapMapScript.galaxy:2526

    }
    else {
        UnitIssueOrder(lv_chosenZealot, OrderTargetingPoint(AbilityCommand("attack", 0), UnitGroupCenterOfGroup(lv_playersUnits)), c_orderQueueReplace);
    }
    TriggerQueueEnter();

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/voidprologue/voidprologue02.sc2mapMapScript.galaxy:2586

    UnitGroupAddUnitGroup(lv_availableZealots, UnitGroup("Zealot", gv_pLAYER_05_TALDARIM, RegionFromId(31), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));
    lv_playersUnits = UnitGroup(null, gv_pLAYER_01_USER, RegionFromId(31), UnitFilter(0, 0, (1 << c_targetFilterAir) | (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
    lv_chosenZealot = UnitGroupClosestToPoint(lv_availableZealots, UnitGroupCenterOfGroup(lv_playersUnits));
    if ((lv_chosenZealot == null)) {
        return true;

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/voidprologue/voidprologue02.sc2mapMapScript.galaxy:2591

    }
    else {
        UnitIssueOrder(lv_chosenZealot, OrderTargetingPoint(AbilityCommand("attack", 0), UnitGroupCenterOfGroup(lv_playersUnits)), c_orderQueueReplace);
    }
    TriggerQueueEnter();

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/voidprologue/voidprologue03.sc2mapMapScript.galaxy:3653

    if ((libA3DDD02B_gf_DifficultyValuePrologueBoolean(false, false, true, true) == true) && (UnitGroupCount(UnitGroup(null, gv_pLAYER_01_USER, RegionFromId(21), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) > 0)) {
        Wait(1.0, c_timeGame);
        UnitIssueOrder(UnitFromId(642), OrderTargetingPoint(AbilityCommand("PsiStorm", 0), UnitGroupCenterOfGroup(UnitGroup(null, gv_pLAYER_01_USER, RegionFromId(21), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0))), c_orderQueueReplace);
    }

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/voidprologue/voidprologue03.sc2mapMapScript.galaxy:3863

    if ((libA3DDD02B_gf_DifficultyValuePrologueInteger(0, 0, 1, 1) == 1)) {
        Wait(1.0, c_timeGame);
        UnitIssueOrder(UnitFromId(599), OrderTargetingPoint(AbilityCommand("PsiStorm", 0), UnitGroupCenterOfGroup(UnitGroup(null, gv_pLAYER_01_USER, RegionFromId(55), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0))), c_orderQueueReplace);
    }

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/voidprologue/voidprologue03.sc2mapMapScript.galaxy:4063

        if ((libA3DDD02B_gf_DifficultyValuePrologueInteger(0, 0, 1, 1) == 1)) {
            UnitIssueOrder(UnitGroupUnit(lv_remainingAscendants, 1), OrderTargetingPoint(AbilityCommand("PsiStorm", 0), UnitGetPosition(UnitGroupClosestToPoint(UnitGroup(null, gv_pLAYER_01_USER, RegionFromId(52), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), UnitGetPosition(UnitGroupUnit(lv_remainingAscendants, 1))))), c_orderQueueReplace);
            UnitIssueOrder(UnitGroupUnit(lv_remainingAscendants, 2), OrderTargetingPoint(AbilityCommand("PsiStorm", 0), UnitGroupCenterOfGroup(UnitGroup(null, gv_pLAYER_01_USER, RegionFromId(52), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0))), c_orderQueueReplace);
        }