<- PRPL reference <- Everything Else 2
Arguments | Result | Notation |
---|---|---|
UID | Type | [ int - string ] |
Takes a unit UID and returns a string of the type of the corresponding unit. Useful for myriad things where you need only a certain type of unit. See also: List of unit types
CurrentCoords 10000 1 GetAllUnitsInRange ->MapUnits <-MapUnits GetListCount 0 do <-MapUnits[I] ->Unit "Unit:" <-Unit "is" <-Unit GetUnitType <-Unit GetUnitIsEnemy if "(Enemy)" else "(Ally)" endif Trace5 loop