<- CRPL reference <- Unit Commands
Arguments | Result | Notation |
---|---|---|
Coordinates and range | Number of enemy units in range and their UID's | i1 i2 f1 – l1 l2…ln n |
Pushes the UID's of all enemy units in range (emitters, spore towers, cores) onto the stack followed by the integer n, where n is the number of units.
:GetEmitterCount 0 ->count do (GetEnemyUnitsInRange(0 0 9999) 0) ->unitUID if (GetUnitType(<-unitUID) "EMITTER" eq) <-count add(1) ->count endif loop <-count