<- PRPL reference <- Everything Else 2

GetAllUnitsInRange

ArgumentsResultNotation
CellX CellY Range Shape List [ i1 i2 f1 i3 - L1]

Description

Provides a list of all units within Range of the specified cell. Shape of 0 will search in a circle, 1 will search in a square. (A box search may be more efficient. FIXME)

Changed from CRPL - This command returns a list in PRPL. CRPL GetAllUnitsInRange returned a pile of loose UIDs and a count.

Examples

#Suppose that there is an energy pod at (10,15) and another at (15,15)...
10 10 6 0 GetAllUnitsInRange Trace
#The list will contain the UID of the pod at (10,15)
10 10 6 1 GetAllUnitsInRange Trace
#The list will contain the UIDs of both pods
0 0 9999 1 GetAllUnitsInRange Trace
#The list will contain the UIDs of every pod on the map.