# Pathing Cost Between Points

Grammar — Pathing cost between p1|Point and p2|Point
FlagsNative | Function

Returns the ground pathing cost between two points as an integer.

# Arguments

  • point — Point 1
  • point — Point 2

Returns — int

native int PointPathingCost(point p1, point p2);

Category: Point / Pathing

# Examples

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

    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));
            lv_moveToB = 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:516

            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);
                if (autoD9320D5C_val == 1) {

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

            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);
                if (autoD9320D5C_val == 1) {

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

            }
            else {
                if ((PointPathingCost(UnitGetPosition(lp_diamondback), lv_moveToA) > 1000)) {
                    lv_moveTo = lv_moveToB;
                }

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

                }

                if ((PointPathingCost(UnitGetPosition(lp_diamondback), lv_moveToB) > 1000)) {
                    lv_moveTo = lv_moveToA;
                }

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

    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));
            lv_moveToB = 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:807

            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);
                if (auto016EB74F_val == 1) {

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

            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);
                if (auto016EB74F_val == 1) {

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

            }
            else {
                if ((PointPathingCost(UnitGetPosition(lp_diamondback), lv_moveToA) < 1000)) {
                    lv_moveTo = lv_moveToA;
                }

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

                }
                else {
                    if ((PointPathingCost(UnitGetPosition(lp_diamondback), lv_moveToB) < 1000)) {
                        lv_moveTo = lv_moveToB;
                    }

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

    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));
            lv_moveToB = 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:510

            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);
                if (auto8C0D3942_val == 1) {

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

            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);
                if (auto8C0D3942_val == 1) {

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

            }
            else {
                if ((PointPathingCost(UnitGetPosition(lp_diamondback), lv_moveToA) > 1000)) {
                    lv_moveTo = lv_moveToB;
                }

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

                }

                if ((PointPathingCost(UnitGetPosition(lp_diamondback), lv_moveToB) > 1000)) {
                    lv_moveTo = lv_moveToA;
                }

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

    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));
            lv_moveToB = 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:516

            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);
                if (autoD9320D5C_val == 1) {

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

            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);
                if (autoD9320D5C_val == 1) {

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

            }
            else {
                if ((PointPathingCost(UnitGetPosition(lp_diamondback), lv_moveToA) > 1000)) {
                    lv_moveTo = lv_moveToB;
                }

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

                }

                if ((PointPathingCost(UnitGetPosition(lp_diamondback), lv_moveToB) > 1000)) {
                    lv_moveTo = lv_moveToA;
                }

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

    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));
            lv_moveToB = 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:807

            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);
                if (auto016EB74F_val == 1) {

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

            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);
                if (auto016EB74F_val == 1) {

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

            }
            else {
                if ((PointPathingCost(UnitGetPosition(lp_diamondback), lv_moveToA) < 1000)) {
                    lv_moveTo = lv_moveToA;
                }

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

                }
                else {
                    if ((PointPathingCost(UnitGetPosition(lp_diamondback), lv_moveToB) < 1000)) {
                        lv_moveTo = lv_moveToB;
                    }

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

    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));
            lv_moveToB = 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:510

            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);
                if (auto8C0D3942_val == 1) {

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

            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);
                if (auto8C0D3942_val == 1) {

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

            }
            else {
                if ((PointPathingCost(UnitGetPosition(lp_diamondback), lv_moveToA) > 1000)) {
                    lv_moveTo = lv_moveToB;
                }

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

                }

                if ((PointPathingCost(UnitGetPosition(lp_diamondback), lv_moveToB) > 1000)) {
                    lv_moveTo = lv_moveToA;
                }

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignDataHelperLib.galaxy:98

    while ((lv_distance >= 0.6) && (lv_goodPositionFound == false)) {
        lv_t = libNtve_gf_PointOffsetTowardsPoint(lv_k, lv_distance, lv_t);
        if ((PointPathingCost(lv_k, lv_t) <= FixedToInt((lv_distance * 1.5))) && (WorldHeight(c_heightMapGround, lv_k) < (WorldHeight(c_heightMapGround, lv_t) + 1.0)) && (WorldHeight(c_heightMapGround, lv_k) > (WorldHeight(c_heightMapGround, lv_t) - 1.0))) {
            lv_goodPositionFound = true;
        }

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:5657

    while ((lv_distance >= 0.6) && (lv_goodPositionFound == false)) {
        lv_t = libNtve_gf_PointOffsetTowardsPoint(lv_k, lv_distance, lv_t);
        if ((PointPathingCost(lv_k, lv_t) <= FixedToInt((lv_distance * 1.5))) && (WorldHeight(c_heightMapGround, lv_k) < (WorldHeight(c_heightMapGround, lv_t) + 1.0)) && (WorldHeight(c_heightMapGround, lv_k) > (WorldHeight(c_heightMapGround, lv_t) - 1.0))) {
            lv_goodPositionFound = true;
        }

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:5741

    while ((lv_distance >= 0.6) && (lv_goodPositionFound == false)) {
        lv_t = libNtve_gf_PointOffsetTowardsPoint(lv_k, lv_distance, lv_t);
        if ((PointPathingCost(lv_k, lv_t) <= FixedToInt((lv_distance * 1.5))) && (WorldHeight(c_heightMapGround, lv_k) < (WorldHeight(c_heightMapGround, lv_t) + 1.0)) && (WorldHeight(c_heightMapGround, lv_k) > (WorldHeight(c_heightMapGround, lv_t) - 1.0))) {
            lv_goodPositionFound = true;
        }

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:5825

    while ((lv_distance >= 0.6) && (lv_goodPositionFound == false)) {
        lv_t = libNtve_gf_PointOffsetTowardsPoint(lv_k, lv_distance, lv_t);
        if ((PointPathingCost(lv_k, lv_t) <= FixedToInt((lv_distance * 1.5))) && (WorldHeight(c_heightMapGround, lv_k) < (WorldHeight(c_heightMapGround, lv_t) + 1.0)) && (WorldHeight(c_heightMapGround, lv_k) > (WorldHeight(c_heightMapGround, lv_t) - 1.0))) {
            lv_goodPositionFound = true;
        }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameDataHelperLib.galaxy:8670

            }
        }
        if ((UnitGetType(autoC170BB9F_var) != "HeroChenStorm") && (UnitIsAlive(autoC170BB9F_var) == true) && (PointPathingCost(UnitGetPosition(autoC170BB9F_var), lv_actualTargetPoint) < 100)) {
            libNtve_gf_MakeUnitFacePoint(autoC170BB9F_var, lv_actualTargetPoint, 0.0);
            UnitCreateEffectUnit(autoC170BB9F_var, "DismountDecloakCasterSet", autoC170BB9F_var);

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNCMI.galaxy:4715

    while ((lv_distance >= 0.6) && (lv_goodPositionFound == false)) {
        lv_t = libNtve_gf_PointOffsetTowardsPoint(lv_k, lv_distance, lv_t);
        if ((PointPathingCost(lv_k, lv_t) <= FixedToInt((lv_distance * 1.5))) && (WorldHeight(c_heightMapGround, lv_k) < (WorldHeight(c_heightMapGround, lv_t) + 1.0)) && (WorldHeight(c_heightMapGround, lv_k) > (WorldHeight(c_heightMapGround, lv_t) - 1.0))) {
            lv_goodPositionFound = true;
        }

mods/novastoryassets.sc2modbase.sc2maps/maps/campaign/nova/nova02.sc2map/MapScript.galaxy:4751

            auto2433F59F_var = UnitGroupUnitFromEnd(auto2433F59F_g, auto2433F59F_u);
            if (auto2433F59F_var == null) { break; }
            if ((PointPathingCost(UnitGetPosition(auto2433F59F_var), UnitGroupCenterOfGroup(lv_waveGroup)) < 20)) {
                if ((DistanceBetweenPoints(UnitGetPosition(auto2433F59F_var), UnitGroupCenterOfGroup(lv_waveGroup)) < 3.0)) {
                    UnitGroupAdd(lv_validTargets, auto2433F59F_var);

mods/novastoryassets.sc2modbase3.sc2maps/maps/campaign/nova/nova07.sc2map/MapScript.galaxy:8130

                lv_closestEnemyTargetUnit = UnitGroupClosestToPoint(lv_enemyTargetGroup, UnitGetPosition(gv_stone));
                if ((UnitGroupCount(lv_enemyTargetGroup, c_unitCountAlive) > 0) && (lv_closestEnemyTargetUnit != null)) {
                    if ((PointPathingCost(UnitGetPosition(gv_stone), UnitGetPosition(lv_closestEnemyTargetUnit)) > 3) && (VisIsVisibleForPlayer(gv_pLAYER_05_DEFENDERS, UnitGetPosition(lv_closestEnemyTargetUnit)) == true)) {
                        lv_movePoint = UnitGetPosition(gv_stone);
                    }

mods/novastoryassets.sc2modbase3.sc2maps/maps/campaign/nova/nova07.sc2map/MapScript.galaxy:8138

                    lv_movePointIter = 1;
                    for ( ; ( (auto928839BD_ai >= 0 && lv_movePointIter <= auto928839BD_ae) || (auto928839BD_ai < 0 && lv_movePointIter >= auto928839BD_ae) ) ; lv_movePointIter += auto928839BD_ai ) {
                        if ((PointPathingCost(PointFromName((lv_movePointString + IntToString(lv_movePointIter))), UnitGetPosition(lv_closestEnemyTargetUnit)) == FixedToInt(DistanceBetweenPoints(PointFromName((lv_movePointString + IntToString(lv_movePointIter))), UnitGetPosition(lv_closestEnemyTargetUnit)))) && (PointPathingCost(PointFromName((lv_movePointString + IntToString(lv_movePointIter))), UnitGetPosition(lv_closestEnemyTargetUnit)) < PointPathingCost(lv_movePoint, UnitGetPosition(lv_closestEnemyTargetUnit)))) {
                            lv_movePoint = PointFromName((lv_movePointString + IntToString(lv_movePointIter)));
                        }

mods/novastoryassets.sc2modbase3.sc2maps/maps/campaign/nova/nova07.sc2map/MapScript.galaxy:8138

                    lv_movePointIter = 1;
                    for ( ; ( (auto928839BD_ai >= 0 && lv_movePointIter <= auto928839BD_ae) || (auto928839BD_ai < 0 && lv_movePointIter >= auto928839BD_ae) ) ; lv_movePointIter += auto928839BD_ai ) {
                        if ((PointPathingCost(PointFromName((lv_movePointString + IntToString(lv_movePointIter))), UnitGetPosition(lv_closestEnemyTargetUnit)) == FixedToInt(DistanceBetweenPoints(PointFromName((lv_movePointString + IntToString(lv_movePointIter))), UnitGetPosition(lv_closestEnemyTargetUnit)))) && (PointPathingCost(PointFromName((lv_movePointString + IntToString(lv_movePointIter))), UnitGetPosition(lv_closestEnemyTargetUnit)) < PointPathingCost(lv_movePoint, UnitGetPosition(lv_closestEnemyTargetUnit)))) {
                            lv_movePoint = PointFromName((lv_movePointString + IntToString(lv_movePointIter)));
                        }

mods/novastoryassets.sc2modbase3.sc2maps/maps/campaign/nova/nova07.sc2map/MapScript.galaxy:8138

                    lv_movePointIter = 1;
                    for ( ; ( (auto928839BD_ai >= 0 && lv_movePointIter <= auto928839BD_ae) || (auto928839BD_ai < 0 && lv_movePointIter >= auto928839BD_ae) ) ; lv_movePointIter += auto928839BD_ai ) {
                        if ((PointPathingCost(PointFromName((lv_movePointString + IntToString(lv_movePointIter))), UnitGetPosition(lv_closestEnemyTargetUnit)) == FixedToInt(DistanceBetweenPoints(PointFromName((lv_movePointString + IntToString(lv_movePointIter))), UnitGetPosition(lv_closestEnemyTargetUnit)))) && (PointPathingCost(PointFromName((lv_movePointString + IntToString(lv_movePointIter))), UnitGetPosition(lv_closestEnemyTargetUnit)) < PointPathingCost(lv_movePoint, UnitGetPosition(lv_closestEnemyTargetUnit)))) {
                            lv_movePoint = PointFromName((lv_movePointString + IntToString(lv_movePointIter)));
                        }

mods/novastoryassets.sc2mod/base.sc2maps/maps/campaign/nova/nova02.sc2mapMapScript.galaxy:4751

            auto2433F59F_var = UnitGroupUnitFromEnd(auto2433F59F_g, auto2433F59F_u);
            if (auto2433F59F_var == null) { break; }
            if ((PointPathingCost(UnitGetPosition(auto2433F59F_var), UnitGroupCenterOfGroup(lv_waveGroup)) < 20)) {
                if ((DistanceBetweenPoints(UnitGetPosition(auto2433F59F_var), UnitGroupCenterOfGroup(lv_waveGroup)) < 3.0)) {
                    UnitGroupAdd(lv_validTargets, auto2433F59F_var);

mods/novastoryassets.sc2mod/base3.sc2maps/maps/campaign/nova/nova07.sc2mapMapScript.galaxy:8130

                lv_closestEnemyTargetUnit = UnitGroupClosestToPoint(lv_enemyTargetGroup, UnitGetPosition(gv_stone));
                if ((UnitGroupCount(lv_enemyTargetGroup, c_unitCountAlive) > 0) && (lv_closestEnemyTargetUnit != null)) {
                    if ((PointPathingCost(UnitGetPosition(gv_stone), UnitGetPosition(lv_closestEnemyTargetUnit)) > 3) && (VisIsVisibleForPlayer(gv_pLAYER_05_DEFENDERS, UnitGetPosition(lv_closestEnemyTargetUnit)) == true)) {
                        lv_movePoint = UnitGetPosition(gv_stone);
                    }

mods/novastoryassets.sc2mod/base3.sc2maps/maps/campaign/nova/nova07.sc2mapMapScript.galaxy:8138

                    lv_movePointIter = 1;
                    for ( ; ( (auto928839BD_ai >= 0 && lv_movePointIter <= auto928839BD_ae) || (auto928839BD_ai < 0 && lv_movePointIter >= auto928839BD_ae) ) ; lv_movePointIter += auto928839BD_ai ) {
                        if ((PointPathingCost(PointFromName((lv_movePointString + IntToString(lv_movePointIter))), UnitGetPosition(lv_closestEnemyTargetUnit)) == FixedToInt(DistanceBetweenPoints(PointFromName((lv_movePointString + IntToString(lv_movePointIter))), UnitGetPosition(lv_closestEnemyTargetUnit)))) && (PointPathingCost(PointFromName((lv_movePointString + IntToString(lv_movePointIter))), UnitGetPosition(lv_closestEnemyTargetUnit)) < PointPathingCost(lv_movePoint, UnitGetPosition(lv_closestEnemyTargetUnit)))) {
                            lv_movePoint = PointFromName((lv_movePointString + IntToString(lv_movePointIter)));
                        }

mods/novastoryassets.sc2mod/base3.sc2maps/maps/campaign/nova/nova07.sc2mapMapScript.galaxy:8138

                    lv_movePointIter = 1;
                    for ( ; ( (auto928839BD_ai >= 0 && lv_movePointIter <= auto928839BD_ae) || (auto928839BD_ai < 0 && lv_movePointIter >= auto928839BD_ae) ) ; lv_movePointIter += auto928839BD_ai ) {
                        if ((PointPathingCost(PointFromName((lv_movePointString + IntToString(lv_movePointIter))), UnitGetPosition(lv_closestEnemyTargetUnit)) == FixedToInt(DistanceBetweenPoints(PointFromName((lv_movePointString + IntToString(lv_movePointIter))), UnitGetPosition(lv_closestEnemyTargetUnit)))) && (PointPathingCost(PointFromName((lv_movePointString + IntToString(lv_movePointIter))), UnitGetPosition(lv_closestEnemyTargetUnit)) < PointPathingCost(lv_movePoint, UnitGetPosition(lv_closestEnemyTargetUnit)))) {
                            lv_movePoint = PointFromName((lv_movePointString + IntToString(lv_movePointIter)));
                        }

mods/novastoryassets.sc2mod/base3.sc2maps/maps/campaign/nova/nova07.sc2mapMapScript.galaxy:8138

                    lv_movePointIter = 1;
                    for ( ; ( (auto928839BD_ai >= 0 && lv_movePointIter <= auto928839BD_ae) || (auto928839BD_ai < 0 && lv_movePointIter >= auto928839BD_ae) ) ; lv_movePointIter += auto928839BD_ai ) {
                        if ((PointPathingCost(PointFromName((lv_movePointString + IntToString(lv_movePointIter))), UnitGetPosition(lv_closestEnemyTargetUnit)) == FixedToInt(DistanceBetweenPoints(PointFromName((lv_movePointString + IntToString(lv_movePointIter))), UnitGetPosition(lv_closestEnemyTargetUnit)))) && (PointPathingCost(PointFromName((lv_movePointString + IntToString(lv_movePointIter))), UnitGetPosition(lv_closestEnemyTargetUnit)) < PointPathingCost(lv_movePoint, UnitGetPosition(lv_closestEnemyTargetUnit)))) {
                            lv_movePoint = PointFromName((lv_movePointString + IntToString(lv_movePointIter)));
                        }

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:6721

        for ( ; ( (auto4EC1E152_ai >= 0 && lv_angleIter <= auto4EC1E152_ae) || (auto4EC1E152_ai < 0 && lv_angleIter >= auto4EC1E152_ae) ) ; lv_angleIter += auto4EC1E152_ai ) {
            lv_pointIter = PointWithOffsetPolar(PlayerStartLocation(libCOMI_gv_cM_ZeratulPlayer), lv_radiusIter, lv_angleIter);
            if ((IntToFixed(lv_validPointsCount) < (lp_maxDistance * 0.33)) && (PointPathingPassable(lv_pointIter) == true) && (PointPathingCost(PlayerStartLocation(libCOMI_gv_cM_ZeratulPlayer), lv_pointIter) <= FixedToInt(lp_maxDistance)) && (DistanceBetweenPoints(PlayerStartLocation(PlayerGroupPlayer(libCOOC_gf_CommanderPlayers(), 1)), lv_pointIter) >= lv_startLocationBuffer) && (DistanceBetweenPoints(PlayerStartLocation(PlayerGroupPlayer(libCOOC_gf_CommanderPlayers(), 2)), lv_pointIter) >= lv_startLocationBuffer) && ((UnitIsAlive(libCOMI_gv_cM_HeroUnit[libCOMI_gv_cM_ZeratulPlayer]) == false) || (DistanceBetweenPoints(UnitGetPosition(libCOMI_gv_cM_HeroUnit[libCOMI_gv_cM_ZeratulPlayer]), lv_pointIter) > libNtve_gf_CatalogFieldValueGetAsReal(c_gameCatalogEffect, "ProphecyArtifactRevealSearch", "AreaArray[" + IntToString(0) + "].Radius", c_playerAny)))) {
                lv_nearbyUnitHealth = 0;
                auto38554CDB_g = libNtve_gf_UnitsInRegionWithAllianceToPlayerMatchingCondition(null, "", "", libCOMI_gv_cM_ZeratulPlayer, c_unitAllianceEnemy, RegionCircle(lv_pointIter, 10.0), UnitFilter((1 << c_targetFilterStructure), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:6810

            lv_pointIter = PointWithOffsetPolar(lv_artifactOrigin, lv_radiusIter, lv_angleIter);
            lv_pointIsPassableAndNotNearZeratul = ((PointPathingPassable(lv_pointIter) == true) && (!(UnitIsAlive(libCOMI_gv_cM_HeroUnit[libCOMI_gv_cM_ZeratulPlayer])) || (DistanceBetweenPoints(UnitGetPosition(libCOMI_gv_cM_HeroUnit[libCOMI_gv_cM_ZeratulPlayer]), lv_pointIter) > lv_zeratulSearchRadius)) && (RegionContainsPoint(libCOMI_gv_cM_ZeratulProphecyArtifactBadRegion, lv_pointIter) == false));
            if ((lv_pointIsPassableAndNotNearZeratul == true) && ((lv_checkPathing == false) || (PointPathingIsConnected(lv_pathingCheckPoint, lv_pointIter) == true)) && ((lv_maxWalkingDistance == 0.0) || (PointPathingCost(lv_pathingCheckPoint, lv_pointIter) <= FixedToInt(lv_maxWalkingDistance)))) {
                if ((lv_nearbyUnitHealthLimit > 0.0)) {
                    lv_nearbyUnitHealth = 0;

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:6906

            lv_pointIter = PointWithOffsetPolar(lv_artifactOrigin, lv_radiusIter, lv_angleIter);
            lv_pointIsPassableAndNotNearZeratul = ((PointPathingPassable(lv_pointIter) == true) && (!(UnitIsAlive(libCOMI_gv_cM_HeroUnit[libCOMI_gv_cM_ZeratulPlayer])) || (DistanceBetweenPoints(UnitGetPosition(libCOMI_gv_cM_HeroUnit[libCOMI_gv_cM_ZeratulPlayer]), lv_pointIter) > lv_zeratulSearchRadius)) && (RegionContainsPoint(libCOMI_gv_cM_ZeratulProphecyArtifactBadRegion, lv_pointIter) == false));
            if ((lv_pointIsPassableAndNotNearZeratul == true) && ((lv_checkPathing == false) || (PointPathingIsConnected(lv_pathingCheckPoint, lv_pointIter) == true)) && ((lv_maxWalkingDistance == 0.0) || (PointPathingCost(lv_pathingCheckPoint, lv_pointIter) <= FixedToInt(lv_maxWalkingDistance)))) {
                if ((lv_nearbyUnitHealthLimit > 0.0)) {
                    lv_nearbyUnitHealth = 0;

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:20973

    while ((lv_distance >= 0.6) && (lv_goodPositionFound == false)) {
        lv_t = libNtve_gf_PointOffsetTowardsPoint(lv_k, lv_distance, lv_t);
        if ((PointPathingCost(lv_k, lv_t) <= FixedToInt((lv_distance * 1.5))) && (WorldHeight(c_heightMapGround, lv_k) < (WorldHeight(c_heightMapGround, lv_t) + 1.0)) && (WorldHeight(c_heightMapGround, lv_k) > (WorldHeight(c_heightMapGround, lv_t) - 1.0))) {
            lv_goodPositionFound = true;
        }

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:23336

    while ((lv_distance >= 0.6) && (lv_goodPositionFound == false)) {
        lv_t = libNtve_gf_PointOffsetTowardsPoint(lv_k, lv_distance, lv_t);
        if ((PointPathingCost(lv_k, lv_t) <= FixedToInt((lv_distance * 1.5))) && (WorldHeight(c_heightMapGround, lv_k) < (WorldHeight(c_heightMapGround, lv_t) + 1.0)) && (WorldHeight(c_heightMapGround, lv_k) > (WorldHeight(c_heightMapGround, lv_t) - 1.0))) {
            lv_goodPositionFound = true;
        }

mods/warcoop/progression/equipments.sc2modbase.sc2data/LibPEqu.galaxy:193

        lv_placementPoint = PointWithOffsetPolar(UnitGetPosition(lv_hero), lv_placementDistance, lv_placementAngle);
        lv_placementDistance += 0.5;
    }while (((PointPathingPassable(lv_placementPoint) == false) || (PointPathingCost(lv_placementPoint, UnitGetPosition(lv_hero)) > 4)) && (lv_placementDistance < 0.5));
    UnitSetPosition(EventUnitProgressUnit(), lv_placementPoint, false);
    UnitCreateEffectUnit(EventUnitProgressUnit(), "GreaterStaffofTeleportationArtDummy", EventUnitProgressUnit());