This is an old revision of the document!
~~DISCUSSION~~ <- CRPL reference <- Unit Commands
Arguments | Result | Notation |
---|---|---|
Unit UID | Unit name | i1 – s1 |
Returns the name of the unit type. Names are NOT case sensitive.
Flying guppies, strafers, bombers, and runners will return an empty string as their unit type if your version of CW3 is 1.14 or lower.
:GetUnitTypeCount ->unitType 0 ->count do (GetUnitsInRange(0 0 9999) 0) ->unitUID if (GetUnitType(<-unitUID) eq(<-unitType)) <-count add(1) ->count endif loop <-count