# Points Connected By Pathing

Grammarp1|Point and p2|Point are connected by pathing
FlagsNative | Function

Returns true if the specified points are connected by ground pathing.

# Arguments

  • point — Point 1
  • point — Point 2

Returns — bool

native bool PointPathingIsConnected(point p1, point p2);

Category: Point / Pathing

# Examples

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

            lv_currentUnit = UnitGroupUnitFromEnd(auto4BADDDFF_g, auto4BADDDFF_u);
            if (lv_currentUnit == null) { break; }
            if ((PointPathingIsConnected(UnitGetPosition(auto16E4DC23_var), UnitGetPosition(lv_currentUnit)) == true) && (DistanceBetweenPoints(UnitGetPosition(auto16E4DC23_var), UnitGetPosition(lv_currentUnit)) <= 11.0)) {
                UnitGroupAdd(lv_validTargets, lv_currentUnit);
            }

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

                    lv_currentUnit = UnitGroupUnitFromEnd(auto938C084D_g, auto938C084D_u);
                    if (lv_currentUnit == null) { break; }
                    if ((PointPathingIsConnected(UnitGetPosition(autoB0D64614_var), UnitGetPosition(lv_currentUnit)) == true)) {
                        UnitGroupAdd(lv_validTargets, lv_currentUnit);
                    }

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

                    lv_currentUnit = UnitGroupUnitFromEnd(auto398F5ACC_g, auto398F5ACC_u);
                    if (lv_currentUnit == null) { break; }
                    if ((PointPathingIsConnected(UnitGetPosition(autoFA044A09_var), UnitGetPosition(lv_currentUnit)) == true)) {
                        UnitGroupAdd(lv_validTargets, lv_currentUnit);
                    }

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

            lv_currentUnit = UnitGroupUnitFromEnd(auto4BADDDFF_g, auto4BADDDFF_u);
            if (lv_currentUnit == null) { break; }
            if ((PointPathingIsConnected(UnitGetPosition(auto16E4DC23_var), UnitGetPosition(lv_currentUnit)) == true) && (DistanceBetweenPoints(UnitGetPosition(auto16E4DC23_var), UnitGetPosition(lv_currentUnit)) <= 11.0)) {
                UnitGroupAdd(lv_validTargets, lv_currentUnit);
            }

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

                    lv_currentUnit = UnitGroupUnitFromEnd(auto938C084D_g, auto938C084D_u);
                    if (lv_currentUnit == null) { break; }
                    if ((PointPathingIsConnected(UnitGetPosition(autoB0D64614_var), UnitGetPosition(lv_currentUnit)) == true)) {
                        UnitGroupAdd(lv_validTargets, lv_currentUnit);
                    }

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

                    lv_currentUnit = UnitGroupUnitFromEnd(auto398F5ACC_g, auto398F5ACC_u);
                    if (lv_currentUnit == null) { break; }
                    if ((PointPathingIsConnected(UnitGetPosition(autoFA044A09_var), UnitGetPosition(lv_currentUnit)) == true)) {
                        UnitGroupAdd(lv_validTargets, lv_currentUnit);
                    }

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:11088

            lv_dropLocation = PointWithOffsetPolar(lv_dropPodLocation, RandomFixed(0.5, 2.0), lv_angle);
            lv_angle = (lv_angle + 77.0);
            if ((PathingType(lv_dropLocation) == c_pathingGround) && (PointPathingIsConnected(lv_dropLocation, lv_dropPodLocation) == true) && (PointPathingPassable(lv_dropLocation) == true)) {
                break;
            }

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

            lv_dropLocation = PointWithOffsetPolar(lv_dropPodLocation, 1.0, lv_spawnAngle);
            lv_spawnAngle = (lv_spawnAngle + 77.0);
            if ((PathingType(lv_dropLocation) == c_pathingGround) && (PointPathingIsConnected(lv_dropLocation, lv_dropPodLocation) == true)) {
                break;
            }

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

    for ( ; ( (auto773DC6B0_ai >= 0 && lv_moveAttempts <= auto773DC6B0_ae) || (auto773DC6B0_ai < 0 && lv_moveAttempts >= auto773DC6B0_ae) ) ; lv_moveAttempts += auto773DC6B0_ai ) {
        lv_testDropPoint = PointWithOffsetPolar(lp_initialDropPoint, RandomFixed(lp_distanceOffsetMin, lp_distanceOffsetMax), libNtve_gf_RandomAngle());
        if ((PathingType(lv_testDropPoint) == c_pathingGround) && (PointPathingIsConnected(lv_testDropPoint, lp_initialDropPoint) == true) && (PointPathingPassable(lv_testDropPoint) == true)) {
            lv_returnedDropPoint = lv_testDropPoint;
            break;

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMU.galaxy:3134

            for ( ; ( (autoD251832F_ai >= 0 && lv_attempts <= autoD251832F_ae) || (autoD251832F_ai < 0 && lv_attempts >= autoD251832F_ae) ) ; lv_attempts += autoD251832F_ai ) {
                lv_targetLocation = RegionRandomPoint(RegionPlayableMap());
                if ((PathingType(lv_targetLocation) == c_pathingGround) && (PointPathingIsConnected(lv_targetLocation, PlayerStartLocation(1)) == true) && (DistanceBetweenPoints(lv_targetLocation, PlayerStartLocation(1)) > 30.0) && (UnitCount(null, c_playerAny, RegionCircle(lv_targetLocation, 5.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 1) <= 0)) {
                    autoD1524D39_val = RandomInt(1, 3);
                    if (autoD1524D39_val == 1) {

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMU.galaxy:4233

    for ( ; ( (autoB400F7EB_ai >= 0 && lv_spawnAttempt <= autoB400F7EB_ae) || (autoB400F7EB_ai < 0 && lv_spawnAttempt >= autoB400F7EB_ae) ) ; lv_spawnAttempt += autoB400F7EB_ai ) {
        lv_riftLocation = RegionRandomPoint(RegionPlayableMap());
        if (((DistanceBetweenPoints(lv_riftLocation, PlayerStartLocation(1)) <= 30.0) || (DistanceBetweenPoints(lv_riftLocation, PlayerStartLocation(2)) <= 30.0) || (DistanceBetweenPoints(lv_riftLocation, PlayerStartLocation(1)) > lv_maxDistance) || (libCOOC_gf_CC_SpawnAllowedAtPoint(lv_riftLocation) == false) || (UnitCountAlliance(1, c_unitAllianceEnemy, RegionCircle(lv_riftLocation, 10.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0) > 3) || (UnitGroupCount(UnitGroup(null, c_playerAny, RegionCircle(lv_riftLocation, 10.0), UnitFilter((1 << c_targetFilterHarvestableResource), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) > 0) || (PointPathingIsConnected(lv_riftLocation, PlayerStartLocation(1)) == false) || (UnitGroupCount(UnitGroup("MutatorVoidRift", c_playerAny, RegionCircle(lv_riftLocation, 20.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) > 0) || ((libCOOC_gf_CC_CurrentMap() == "AC_UlnarLocks") && (GameGetMissionTime() < 300.0) && (AIPathingCostMap(lv_riftLocation, PlayerStartLocation(lp_forPlayer)) > 70)))) {
            lv_riftLocation = null;
            continue;

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMU.galaxy:4281

        for ( ; ( (auto0B9B8DB4_ai >= 0 && lv_birthAttempt <= auto0B9B8DB4_ae) || (auto0B9B8DB4_ai < 0 && lv_birthAttempt >= auto0B9B8DB4_ae) ) ; lv_birthAttempt += auto0B9B8DB4_ai ) {
            lv_spawnLocation = PointWithOffsetPolar(UnitGetPosition(lp_spawningRift), 4.0, libNtve_gf_RandomAngle());
            if ((PathingType(lv_spawnLocation) == c_pathingGround) && (PointPathingIsConnected(lv_spawnLocation, PlayerStartLocation(1)) == true)) {
                UnitSetPosition(lv_birthingUnit, lv_spawnLocation, false);
                if ((AIPathingCostUnit(lv_birthingUnit, PlayerStartLocation(1), c_ignoreEnemyBuildings) > 0)) {

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMU.galaxy:6948

    while ((lv_spawnCount <= lv_maxSpawn) && (lv_spawnAttempt <= lv_maxSpawnAttempts)) {
        lv_spawnPoint = RegionRandomPoint(RegionEntireMap());
        if ((PointPathingIsConnected(lv_spawnPoint, PlayerStartLocation(1)) == true) && (PathingType(lv_spawnPoint) == c_pathingGround) && (VisIsVisibleForPlayer(1, lv_spawnPoint) == false) && (UnitCount(null, c_playerAny, RegionCircle(lv_spawnPoint, 1.0), UnitFilter((1 << c_targetFilterStructure), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0) == 0) && (UnitCount(null, c_playerAny, RegionCircle(lv_spawnPoint, 5.0), UnitFilter((1 << c_targetFilterHarvestableResource), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0) == 0) && (UnitCountAlliance(1, c_unitAllianceEnemy, RegionCircle(lv_spawnPoint, 25.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0) > 0) && (DistanceBetweenPoints(lv_spawnPoint, PlayerStartLocation(1)) >= 30.0) && (DistanceBetweenPoints(lv_spawnPoint, PlayerStartLocation(2)) >= 30.0) && (UnitCount("CelestialLock", c_playerAny, RegionCircle(lv_spawnPoint, 8.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0) == 0) && (UnitCount("DuelBubbleUnit", c_playerAny, RegionCircle(lv_spawnPoint, 15.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0) == 0)) {
            UnitCreate(1, lv_monsterType, 0, 3, lv_spawnPoint, libNtve_gf_RandomAngle());
            libCOMU_gf_CT_RegisterSpawnedUnit(UnitLastCreated());

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMU.galaxy:7027

        for ( ; ( (autoDBBF9915_ai >= 0 && lv_spawnAttempt <= autoDBBF9915_ae) || (autoDBBF9915_ai < 0 && lv_spawnAttempt >= autoDBBF9915_ae) ) ; lv_spawnAttempt += autoDBBF9915_ai ) {
            lv_spawnLocation = RegionRandomPoint(RegionPlayableMap());
            if ((DistanceBetweenPoints(lv_spawnLocation, PlayerStartLocation(1)) > 30.0) && (DistanceBetweenPoints(lv_spawnLocation, PlayerStartLocation(2)) > 30.0) && (libCOOC_gf_CC_SpawnAllowedAtPoint(lv_spawnLocation) == true) && (PointPathingIsConnected(lv_spawnLocation, PlayerStartLocation(1)) == true) && (RegionContainsPoint(libCOMU_gf_CT_MutatorSafetyZone(), lv_spawnLocation) == false)) {
                break;
            }

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMU.galaxy:7166

    while ((lv_spawnCount <= lv_maxSpawn) && (lv_spawnAttempt <= lv_maxSpawnAttempts)) {
        lv_spawnPoint = RegionRandomPoint(RegionEntireMap());
        if ((PointPathingIsConnected(lv_spawnPoint, PlayerStartLocation(1)) == true) && (PathingType(lv_spawnPoint) == c_pathingGround) && (VisIsVisibleForPlayer(1, lv_spawnPoint) == false) && (libCOOC_gf_CC_SpawnAllowedAtPoint(lv_spawnPoint) == true) && (UnitCount(null, c_playerAny, RegionCircle(lv_spawnPoint, 1.0), UnitFilter((1 << c_targetFilterStructure), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0) == 0) && (UnitCount(null, c_playerAny, RegionCircle(lv_spawnPoint, 10.0), UnitFilter((1 << c_targetFilterHarvestableResource), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0) == 0) && (UnitCountAlliance(1, c_unitAllianceEnemy, RegionCircle(lv_spawnPoint, 25.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0) > 0) && (DistanceBetweenPoints(lv_spawnPoint, PlayerStartLocation(1)) >= 30.0) && (DistanceBetweenPoints(lv_spawnPoint, PlayerStartLocation(2)) >= 30.0) && (UnitCount("CelestialLock", c_playerAny, RegionCircle(lv_spawnPoint, 8.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0) == 0) && (UnitCount("WidowMineBurrowed", c_playerAny, RegionCircle(lv_spawnPoint, 8.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0) == 0) && (UnitCount("SpiderMineBurrowed", c_playerAny, RegionCircle(lv_spawnPoint, 8.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0) == 0) && (UnitCount("DuelBubbleUnit", c_playerAny, RegionCircle(lv_spawnPoint, 15.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0) == 0)) {
            lv_widowMineSpawn = 0;
            lv_spiderMineSpawn = 0;

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMU.galaxy:10772

        lv_spawningStructure = UnitGroupRandomUnit(libNtve_gf_UnitsInRegionWithAllianceToPlayerMatchingCondition(null, "", "", 1, c_unitAllianceEnemy, RegionPlayableMap(), UnitFilter((1 << c_targetFilterStructure) | (1 << c_targetFilterPreventDefeat), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive);
        lv_targetStructure = UnitGroupRandomUnit(UnitGroup(null, RandomInt(1, 2), RegionPlayableMap(), UnitFilter((1 << c_targetFilterStructure) | (1 << c_targetFilterPreventDefeat), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive);
        if ((lv_spawningStructure != null) && (lv_targetStructure != null) && (PointPathingIsConnected(UnitGetPosition(lv_spawningStructure), UnitGetPosition(lv_targetStructure)) == true)) {
            break;
        }

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMU.galaxy:10862

    while ((lv_spawnCount <= lv_maxSpawn) && (lv_spawnAttempt <= lv_maxSpawnAttempts)) {
        lv_spawnPoint = RegionRandomPoint(RegionEntireMap());
        if ((PointPathingIsConnected(lv_spawnPoint, PlayerStartLocation(1)) == true) && (PathingType(lv_spawnPoint) == c_pathingGround) && (libCOOC_gf_CC_SpawnAllowedAtPoint(lv_spawnPoint) == true) && (VisIsVisibleForPlayer(1, lv_spawnPoint) == false) && (UnitCount(null, c_playerAny, RegionCircle(lv_spawnPoint, 5.0), UnitFilter((1 << c_targetFilterStructure), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0) == 0) && (UnitCount(null, c_playerAny, RegionCircle(lv_spawnPoint, 10.0), UnitFilter((1 << c_targetFilterHarvestableResource), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0) == 0) && (UnitCountAlliance(1, c_unitAllianceEnemy, RegionCircle(lv_spawnPoint, 25.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0) > 0) && (DistanceBetweenPoints(lv_spawnPoint, PlayerStartLocation(1)) >= 30.0) && (DistanceBetweenPoints(lv_spawnPoint, PlayerStartLocation(2)) >= 30.0) && (UnitCount("CelestialLock", c_playerAny, RegionCircle(lv_spawnPoint, 8.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0) == 0) && (UnitCount("DuelBubbleUnit", c_playerAny, RegionCircle(lv_spawnPoint, 15.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0) == 0)) {
            UnitCreate(1, lv_monsterType, 0, 3, lv_spawnPoint, libNtve_gf_RandomAngle());
            lv_spawnCount += 1;

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMU.galaxy:10932

    while ((lv_spawnCount <= lv_maxSpawn) && (lv_spawnAttempt <= lv_maxSpawnAttempts)) {
        lv_spawnPoint = RegionRandomPoint(RegionEntireMap());
        if ((PointPathingIsConnected(lv_spawnPoint, PlayerStartLocation(1)) == true) && (PathingType(lv_spawnPoint) == c_pathingGround) && (VisIsVisibleForPlayer(1, lv_spawnPoint) == false) && (UnitCount(null, c_playerAny, RegionCircle(lv_spawnPoint, 5.0), UnitFilter((1 << c_targetFilterStructure), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0) == 0) && (UnitCount(null, c_playerAny, RegionCircle(lv_spawnPoint, 10.0), UnitFilter((1 << c_targetFilterHarvestableResource), 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0) == 0) && (UnitCountAlliance(1, c_unitAllianceEnemy, RegionCircle(lv_spawnPoint, 25.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0) > 0) && (DistanceBetweenPoints(lv_spawnPoint, PlayerStartLocation(1)) >= 30.0) && (DistanceBetweenPoints(lv_spawnPoint, PlayerStartLocation(2)) >= 30.0) && (UnitCount("CelestialLock", c_playerAny, RegionCircle(lv_spawnPoint, 8.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0) == 0) && (UnitCount("DuelBubbleUnit", c_playerAny, RegionCircle(lv_spawnPoint, 15.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0) == 0)) {
            UnitCreate(1, lv_monsterType, 0, 3, lv_spawnPoint, libNtve_gf_RandomAngle());
            libCOMU_gf_CT_RegisterSpawnedUnit(UnitLastCreated());

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMU.galaxy:11036

                    for ( ; ( (auto356CA157_ai >= 0 && lv_dropSafetyIndex <= auto356CA157_ae) || (auto356CA157_ai < 0 && lv_dropSafetyIndex >= auto356CA157_ae) ) ; lv_dropSafetyIndex += auto356CA157_ai ) {
                        lv_dropLocation = RegionRandomPoint(RegionCircle(PlayerStartLocation(lv_indexPlayer), 40.0));
                        if (((PathingType(lv_dropLocation) != c_pathingGround) || (PointPathingPassable(lv_dropLocation) == false) || (PointPathingIsConnected(lv_dropLocation, PlayerStartLocation(lv_indexPlayer)) == false) || (DistanceBetweenPoints(lv_dropLocation, PlayerStartLocation(1)) <= 25.0) || (DistanceBetweenPoints(lv_dropLocation, PlayerStartLocation(2)) <= 25.0) || (UnitCount("MineralField", c_playerAny, RegionCircle(lv_dropLocation, 4.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0) >= 1) || (libCOMU_gf_CT_NearbyCliffs(lv_dropLocation, 3.0) == true))) {
                            lv_dropLocation = null;
                            continue;