User Tools

Site Tools


4rpl:commands:getunitsbytype

This is an old revision of the document!


GETUNITSBYTYPE

GetUnitsByType(<-unitType <-builtState) ->units

Description

Returns list of units with a type of unitType.
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.

Examples

GetUnitsByType("Tower" 1) ->units
4rpl/commands/getunitsbytype.1607772580.txt.gz · Last modified: 2025/02/14 14:56 (external edit)