# UnitMarkerCount

FlagsNative

# Arguments

  • unit — inUnit
  • marker — inMarker

Returns — int

native int UnitMarkerCount(unit inUnit, marker inMarker);

Category: Unclassified

# Examples

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

        scanCount = scanCount - 1;
        
        if (UnitMarkerCount(unitToCheck, mark) > 0) {
            continue;  // already yoinking this
        }

mods/starcoop/starcoop.sc2modbase.sc2data/TriggerLibs/Tactical/TactCampAI.galaxy:182

        }

        if (UnitMarkerCount(unitToCheck, mark) > 0) {
            return null; // Already marked unit exists in group
        }

mods/starcoop/starcoop.sc2modbase.sc2data/TriggerLibs/Tactical/TactCampAI.galaxy:283

        }

        if (UnitMarkerCount(unitToCheck, mark) > 0) {
            continue; // Ignore unit marked for SpawnBroodling
        }

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

        scanCount = scanCount - 1;
        
        if (UnitMarkerCount(unitToCheck, mark) > 0) {
            continue;  // already yoinking this
        }