This is an old revision of the document!
⇐ Index
GetUnitsByType(<-unitType <-builtState) ->units
Returns list of units with a type of unitType. unitType can be any of the list of unit types or the GUID of a custom unit
builtState is an int (either 0,1,2). 0 = ignore built state. 1 = Only find units that are built. 2 = Only find units that are not built.
GetUnitsByType("Tower" 1) ->units
⇐ Index