# Creep Is Present

Grammar — Creep is present at inPosition
FlagsNative | Function

Returns true if creep is present at a specified point.

# Arguments

  • point — Position

Returns — bool

native bool CreepIsPresent(point inPos);

Category: Environment / Creep And Power

# Examples

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


    // Implementation
    if ((CreepIsPresent(lp_point) == false)) {
        return false;
    }

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

    lv_i = 1;
    for ( ; ( (autoF012CF68_ai >= 0 && lv_i <= autoF012CF68_ae) || (autoF012CF68_ai < 0 && lv_i >= autoF012CF68_ae) ) ; lv_i += autoF012CF68_ai ) {
        if ((CreepIsPresent(PointWithOffsetPolar(lp_point, 1.0, (IntToFixed(lv_i) * 90.0))) == false)) {
            return false;
        }

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


    // Implementation
    if ((CreepIsPresent(lp_point) == false)) {
        return false;
    }

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

    lv_i = 1;
    for ( ; ( (autoAD293901_ai >= 0 && lv_i <= autoAD293901_ae) || (autoAD293901_ai < 0 && lv_i >= autoAD293901_ae) ) ; lv_i += autoAD293901_ai ) {
        if ((CreepIsPresent(PointWithOffsetPolar(lp_point, 1.0, (IntToFixed(lv_i) * 90.0))) == false)) {
            return false;
        }

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

        autoE675049B_var = UnitGroupUnitFromEnd(autoE675049B_g, autoE675049B_u);
        if (autoE675049B_var == null) { break; }
        if ((CreepIsPresent(UnitGetPosition(autoE675049B_var)) == false)) {
            UnitKill(autoE675049B_var);
        }

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

        autoDEB2E354_var = UnitGroupUnitFromEnd(autoDEB2E354_g, autoDEB2E354_u);
        if (autoDEB2E354_var == null) { break; }
        if ((CreepIsPresent(UnitGetPosition(autoDEB2E354_var)) == false)) {
            UnitKill(autoDEB2E354_var);
        }

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


    // Implementation
    if ((CreepIsPresent(lp_point) == false)) {
        return false;
    }

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

    lv_i = 1;
    for ( ; ( (autoF012CF68_ai >= 0 && lv_i <= autoF012CF68_ae) || (autoF012CF68_ai < 0 && lv_i >= autoF012CF68_ae) ) ; lv_i += autoF012CF68_ai ) {
        if ((CreepIsPresent(PointWithOffsetPolar(lp_point, 1.0, (IntToFixed(lv_i) * 90.0))) == false)) {
            return false;
        }

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


    // Implementation
    if ((CreepIsPresent(lp_point) == false)) {
        return false;
    }

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

    lv_i = 1;
    for ( ; ( (autoAD293901_ai >= 0 && lv_i <= autoAD293901_ae) || (autoAD293901_ai < 0 && lv_i >= autoAD293901_ae) ) ; lv_i += autoAD293901_ai ) {
        if ((CreepIsPresent(PointWithOffsetPolar(lp_point, 1.0, (IntToFixed(lv_i) * 90.0))) == false)) {
            return false;
        }

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

        autoE675049B_var = UnitGroupUnitFromEnd(autoE675049B_g, autoE675049B_u);
        if (autoE675049B_var == null) { break; }
        if ((CreepIsPresent(UnitGetPosition(autoE675049B_var)) == false)) {
            UnitKill(autoE675049B_var);
        }

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

        autoDEB2E354_var = UnitGroupUnitFromEnd(autoDEB2E354_g, autoDEB2E354_u);
        if (autoDEB2E354_var == null) { break; }
        if ((CreepIsPresent(UnitGetPosition(autoDEB2E354_var)) == false)) {
            UnitKill(autoDEB2E354_var);
        }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zchar02.sc2map/MapScript.galaxy:476

        lv_y = PointGetY(RegionGetBoundsMin(RegionPlayableMap()));
        while ((lv_y <= lv_endy)) {
            if ((CreepIsPresent(Point(lv_x, lv_y)) == true)) {
                lv_acres += 1;
            }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zchar02.sc2map/MapScript.galaxy:1300

    }

    if ((CreepIsPresent(PointFromId(205)) == true)) {
        TriggerEnable(TriggerGetCurrent(), false);
        TriggerQueueEnter();

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zchar02.sc2mapMapScript.galaxy:476

        lv_y = PointGetY(RegionGetBoundsMin(RegionPlayableMap()));
        while ((lv_y <= lv_endy)) {
            if ((CreepIsPresent(Point(lv_x, lv_y)) == true)) {
                lv_acres += 1;
            }

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zchar02.sc2mapMapScript.galaxy:1300

    }

    if ((CreepIsPresent(PointFromId(205)) == true)) {
        TriggerEnable(TriggerGetCurrent(), false);
        TriggerQueueEnter();

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/paiur01.sc2map/MapScript.galaxy:590

        lv_y = PointGetY(RegionGetBoundsMin(RegionPlayableMap()));
        while ((lv_y <= lv_endy)) {
            if ((CreepIsPresent(Point(lv_x, lv_y)) == true) && (RegionContainsPoint(RegionFromId(59), Point(lv_x, lv_y)) == false) && (RegionContainsPoint(RegionFromId(60), Point(lv_x, lv_y)) == false)) {
                lv_acres += 1;
            }

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pshakuras01.sc2map/MapScript.galaxy:1097

    // Implementation
    lv_testPoint = lp_point;
    if (((CreepIsPresent(lv_testPoint) == false) || (PointPathingPassable(lv_testPoint) == false) || (PathingType(lv_testPoint) == c_pathingBuilding) || (UnitGroupCount(UnitGroup("VoidThrasher", c_playerAny, RegionCircle(lv_testPoint, 3.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 1), c_unitCountAlive) > 0) || (UnitGroupCount(UnitGroup(null, gv_pLAYER_01_USER, RegionCircle(lv_testPoint, lp_radius), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 1), c_unitCountAlive) > 0))) {
        return false;
    }

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pshakuras01.sc2map/MapScript.galaxy:1111

                lv_testPoint = PointWithOffsetPolar(lp_point, ((lv_radiusIncrement * 1.414) - 0.1), (lv_rotationIncrement*45));
            }
            if (((CreepIsPresent(lv_testPoint) == false) || (PointPathingPassable(lv_testPoint) == false) || (PathingType(lv_testPoint) == c_pathingBuilding) || (UnitGroupCount(UnitGroup("VoidThrasher", c_playerAny, RegionCircle(lv_testPoint, 3.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 1), c_unitCountAlive) > 0) || (UnitGroupCount(UnitGroup(null, gv_pLAYER_01_USER, RegionCircle(lv_testPoint, lp_radius), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 1), c_unitCountAlive) > 0))) {
                return false;
            }

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pshakuras02.sc2map/MapScript.galaxy:290

    // Automatic Variable Declarations
    // Implementation
    if ((CreepIsPresent(lp_point) == true) && (CreepIsPresent(PointWithOffsetPolar(lp_point, 1.0, 0.0)) == true) && (CreepIsPresent(PointWithOffsetPolar(lp_point, 1.0, 90.0)) == true) && (CreepIsPresent(PointWithOffsetPolar(lp_point, 1.0, 180.0)) == true) && (CreepIsPresent(PointWithOffsetPolar(lp_point, 1.0, 270.0)) == true)) {
        return true;
    }

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pshakuras02.sc2map/MapScript.galaxy:290

    // Automatic Variable Declarations
    // Implementation
    if ((CreepIsPresent(lp_point) == true) && (CreepIsPresent(PointWithOffsetPolar(lp_point, 1.0, 0.0)) == true) && (CreepIsPresent(PointWithOffsetPolar(lp_point, 1.0, 90.0)) == true) && (CreepIsPresent(PointWithOffsetPolar(lp_point, 1.0, 180.0)) == true) && (CreepIsPresent(PointWithOffsetPolar(lp_point, 1.0, 270.0)) == true)) {
        return true;
    }

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pshakuras02.sc2map/MapScript.galaxy:290

    // Automatic Variable Declarations
    // Implementation
    if ((CreepIsPresent(lp_point) == true) && (CreepIsPresent(PointWithOffsetPolar(lp_point, 1.0, 0.0)) == true) && (CreepIsPresent(PointWithOffsetPolar(lp_point, 1.0, 90.0)) == true) && (CreepIsPresent(PointWithOffsetPolar(lp_point, 1.0, 180.0)) == true) && (CreepIsPresent(PointWithOffsetPolar(lp_point, 1.0, 270.0)) == true)) {
        return true;
    }

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pshakuras02.sc2map/MapScript.galaxy:290

    // Automatic Variable Declarations
    // Implementation
    if ((CreepIsPresent(lp_point) == true) && (CreepIsPresent(PointWithOffsetPolar(lp_point, 1.0, 0.0)) == true) && (CreepIsPresent(PointWithOffsetPolar(lp_point, 1.0, 90.0)) == true) && (CreepIsPresent(PointWithOffsetPolar(lp_point, 1.0, 180.0)) == true) && (CreepIsPresent(PointWithOffsetPolar(lp_point, 1.0, 270.0)) == true)) {
        return true;
    }

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pshakuras02.sc2map/MapScript.galaxy:290

    // Automatic Variable Declarations
    // Implementation
    if ((CreepIsPresent(lp_point) == true) && (CreepIsPresent(PointWithOffsetPolar(lp_point, 1.0, 0.0)) == true) && (CreepIsPresent(PointWithOffsetPolar(lp_point, 1.0, 90.0)) == true) && (CreepIsPresent(PointWithOffsetPolar(lp_point, 1.0, 180.0)) == true) && (CreepIsPresent(PointWithOffsetPolar(lp_point, 1.0, 270.0)) == true)) {
        return true;
    }

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur01.sc2mapMapScript.galaxy:590

        lv_y = PointGetY(RegionGetBoundsMin(RegionPlayableMap()));
        while ((lv_y <= lv_endy)) {
            if ((CreepIsPresent(Point(lv_x, lv_y)) == true) && (RegionContainsPoint(RegionFromId(59), Point(lv_x, lv_y)) == false) && (RegionContainsPoint(RegionFromId(60), Point(lv_x, lv_y)) == false)) {
                lv_acres += 1;
            }

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pshakuras01.sc2mapMapScript.galaxy:1097

    // Implementation
    lv_testPoint = lp_point;
    if (((CreepIsPresent(lv_testPoint) == false) || (PointPathingPassable(lv_testPoint) == false) || (PathingType(lv_testPoint) == c_pathingBuilding) || (UnitGroupCount(UnitGroup("VoidThrasher", c_playerAny, RegionCircle(lv_testPoint, 3.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 1), c_unitCountAlive) > 0) || (UnitGroupCount(UnitGroup(null, gv_pLAYER_01_USER, RegionCircle(lv_testPoint, lp_radius), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 1), c_unitCountAlive) > 0))) {
        return false;
    }

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pshakuras01.sc2mapMapScript.galaxy:1111

                lv_testPoint = PointWithOffsetPolar(lp_point, ((lv_radiusIncrement * 1.414) - 0.1), (lv_rotationIncrement*45));
            }
            if (((CreepIsPresent(lv_testPoint) == false) || (PointPathingPassable(lv_testPoint) == false) || (PathingType(lv_testPoint) == c_pathingBuilding) || (UnitGroupCount(UnitGroup("VoidThrasher", c_playerAny, RegionCircle(lv_testPoint, 3.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 1), c_unitCountAlive) > 0) || (UnitGroupCount(UnitGroup(null, gv_pLAYER_01_USER, RegionCircle(lv_testPoint, lp_radius), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 1), c_unitCountAlive) > 0))) {
                return false;
            }

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pshakuras02.sc2mapMapScript.galaxy:290

    // Automatic Variable Declarations
    // Implementation
    if ((CreepIsPresent(lp_point) == true) && (CreepIsPresent(PointWithOffsetPolar(lp_point, 1.0, 0.0)) == true) && (CreepIsPresent(PointWithOffsetPolar(lp_point, 1.0, 90.0)) == true) && (CreepIsPresent(PointWithOffsetPolar(lp_point, 1.0, 180.0)) == true) && (CreepIsPresent(PointWithOffsetPolar(lp_point, 1.0, 270.0)) == true)) {
        return true;
    }

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pshakuras02.sc2mapMapScript.galaxy:290

    // Automatic Variable Declarations
    // Implementation
    if ((CreepIsPresent(lp_point) == true) && (CreepIsPresent(PointWithOffsetPolar(lp_point, 1.0, 0.0)) == true) && (CreepIsPresent(PointWithOffsetPolar(lp_point, 1.0, 90.0)) == true) && (CreepIsPresent(PointWithOffsetPolar(lp_point, 1.0, 180.0)) == true) && (CreepIsPresent(PointWithOffsetPolar(lp_point, 1.0, 270.0)) == true)) {
        return true;
    }

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pshakuras02.sc2mapMapScript.galaxy:290

    // Automatic Variable Declarations
    // Implementation
    if ((CreepIsPresent(lp_point) == true) && (CreepIsPresent(PointWithOffsetPolar(lp_point, 1.0, 0.0)) == true) && (CreepIsPresent(PointWithOffsetPolar(lp_point, 1.0, 90.0)) == true) && (CreepIsPresent(PointWithOffsetPolar(lp_point, 1.0, 180.0)) == true) && (CreepIsPresent(PointWithOffsetPolar(lp_point, 1.0, 270.0)) == true)) {
        return true;
    }

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pshakuras02.sc2mapMapScript.galaxy:290

    // Automatic Variable Declarations
    // Implementation
    if ((CreepIsPresent(lp_point) == true) && (CreepIsPresent(PointWithOffsetPolar(lp_point, 1.0, 0.0)) == true) && (CreepIsPresent(PointWithOffsetPolar(lp_point, 1.0, 90.0)) == true) && (CreepIsPresent(PointWithOffsetPolar(lp_point, 1.0, 180.0)) == true) && (CreepIsPresent(PointWithOffsetPolar(lp_point, 1.0, 270.0)) == true)) {
        return true;
    }

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pshakuras02.sc2mapMapScript.galaxy:290

    // Automatic Variable Declarations
    // Implementation
    if ((CreepIsPresent(lp_point) == true) && (CreepIsPresent(PointWithOffsetPolar(lp_point, 1.0, 0.0)) == true) && (CreepIsPresent(PointWithOffsetPolar(lp_point, 1.0, 90.0)) == true) && (CreepIsPresent(PointWithOffsetPolar(lp_point, 1.0, 180.0)) == true) && (CreepIsPresent(PointWithOffsetPolar(lp_point, 1.0, 270.0)) == true)) {
        return true;
    }

mods/core.sc2modbase.sc2data/TriggerLibs/Tactical/TactZergAI.galaxy:1150

    }

    if (CreepIsPresent(UnitGetPosition(aiUnit))) {
        return; // we're already on creep, no need to uproot
    }

mods/core.sc2modbase.sc2data/TriggerLibs/Tactical/TactZergAI.galaxy:1177

    }

    if (CreepIsPresent(UnitGetPosition(aiUnit))) {
        // made it to creep, try to root               
        ord = AICreateOrder(player, c_AB_SpineCrawlerRoot, 0);

mods/novastoryassets.sc2modbase2.sc2maps/maps/campaign/nova/nova04.sc2map/MapScript.galaxy:651

            auto90DF6E28_var = UnitGroupUnitFromEnd(auto90DF6E28_g, auto90DF6E28_u);
            if (auto90DF6E28_var == null) { break; }
            if ((CreepIsPresent(UnitGetPosition(auto90DF6E28_var)) == true)) {
                libNtve_gf_AICast(UnitGroupClosestToPoint(UnitGroup(null, gv_pLAYER_06_ZERG, lp_expansionRegion, UnitFilter(0, 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), UnitGetPosition(auto90DF6E28_var)), OrderTargetingUnit(AbilityCommand("attack", 0), auto90DF6E28_var));
                libNtve_gf_AICast(UnitGroupClosestToPoint(UnitGroup(null, gv_pLAYER_07_ZERG, lp_expansionRegion, UnitFilter(0, 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), UnitGetPosition(auto90DF6E28_var)), OrderTargetingUnit(AbilityCommand("attack", 0), auto90DF6E28_var));

mods/novastoryassets.sc2mod/base2.sc2maps/maps/campaign/nova/nova04.sc2mapMapScript.galaxy:651

            auto90DF6E28_var = UnitGroupUnitFromEnd(auto90DF6E28_g, auto90DF6E28_u);
            if (auto90DF6E28_var == null) { break; }
            if ((CreepIsPresent(UnitGetPosition(auto90DF6E28_var)) == true)) {
                libNtve_gf_AICast(UnitGroupClosestToPoint(UnitGroup(null, gv_pLAYER_06_ZERG, lp_expansionRegion, UnitFilter(0, 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), UnitGetPosition(auto90DF6E28_var)), OrderTargetingUnit(AbilityCommand("attack", 0), auto90DF6E28_var));
                libNtve_gf_AICast(UnitGroupClosestToPoint(UnitGroup(null, gv_pLAYER_07_ZERG, lp_expansionRegion, UnitFilter(0, 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), UnitGetPosition(auto90DF6E28_var)), OrderTargetingUnit(AbilityCommand("attack", 0), auto90DF6E28_var));

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

        lv_placementY = PointGetY(PointWithOffsetPolar(EventPlayerEffectUsedPoint(c_effectLocationCasterUnit), 13.0, lv_angle));
        if (((lv_placementX > 1) && (lv_placementY > 1) && (lv_placementX < libNtve_gf_WidthOfRegion(lv_mapSize)) && (lv_placementY < libNtve_gf_HeightOfRegion(lv_mapSize)))) {
            if ((CreepIsPresent(Point(lv_placementX, lv_placementY)) == true)) {
                lv_creepTumorGroup = UnitGroupEmpty();
                autoC90DB92D_g = UnitGroup("CreepTumorStukov", c_playerAny, RegionCircle(Point(lv_placementX, lv_placementY), 12.0), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);

mods/starcoop/starcoop.sc2modbase.sc2data/TriggerLibs/Tactical/TactZergAI.galaxy:1349

    }

    if (CreepIsPresent(UnitGetPosition(aiUnit))) {
        return; // we're already on creep, no need to uproot
    }

mods/starcoop/starcoop.sc2modbase.sc2data/TriggerLibs/Tactical/TactZergAI.galaxy:1372

    order ord;

    if (CreepIsPresent(UnitGetPosition(aiUnit))) {
        // made it to creep, try to root               
        ord = AICreateOrder(player, c_AB_SpineCrawlerRoot, 0);