User Tools

Site Tools


crpl:docs:getallunitsinrange

This is an old revision of the document!


~~DISCUSSION~~ <- CRPL reference <- Unit Commands

GetAllUnitsInRange

ArgumentsResultNotation
Coordinates, range, square?Number of units in range i1 i2 f1 b1 – [l1 l2…]i3

Description

Returns a list of unit UID's. Returns all units (including player/enemy and flying/landed) that are within range. A list is returned. A list consists of some number of unit uids, with the number of items in the list being the item on the top of the stack.

If “square?” is set to TRUE, the command uses a square range instead of the usual circular one.

Examples

put example here
crpl/docs/getallunitsinrange.1382850795.txt.gz · Last modified: 2025/02/14 14:56 (external edit)