# UnitMarkerCount
Flags —
Native
# Arguments
unit
— inUnitmarker
— inMarker
Returns — int
native int UnitMarkerCount(unit inUnit, marker inMarker);
# Related
Category: Unclassified
# Examples
mods/core.sc2mod — base.sc2data/TriggerLibs/Tactical/TactZergAI.galaxy:265
scanCount = scanCount - 1;
if (UnitMarkerCount(unitToCheck, mark) > 0) {
continue; // already yoinking this
}
mods/starcoop/starcoop.sc2mod — base.sc2data/TriggerLibs/Tactical/TactCampAI.galaxy:182
}
if (UnitMarkerCount(unitToCheck, mark) > 0) {
return null; // Already marked unit exists in group
}
mods/starcoop/starcoop.sc2mod — base.sc2data/TriggerLibs/Tactical/TactCampAI.galaxy:283
}
if (UnitMarkerCount(unitToCheck, mark) > 0) {
continue; // Ignore unit marked for SpawnBroodling
}
mods/starcoop/starcoop.sc2mod — base.sc2data/TriggerLibs/Tactical/TactZergAI.galaxy:342
scanCount = scanCount - 1;
if (UnitMarkerCount(unitToCheck, mark) > 0) {
continue; // already yoinking this
}