This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| crpl:docs:getunitsinrange [2013/01/14 19:01] – created chani | crpl:docs:getunitsinrange [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | TODO | + | |
| + | <- [[crpl: | ||
| + | ===== GetUnitsInRange | ||
| + | |||
| + | ^Arguments^Result^Notation^ | ||
| + | |Coordinates and range|Number of units in range |'' | ||
| + | |||
| + | |||
| + | === Description === | ||
| + | Returns the unit UID's of all built player units that are landed and within range. | ||
| + | |||
| + | Note: This command will also detect Tech Artifacts, Message Artifacts, Power Zones and Shield Keys. | ||
| + | |||
| + | === Examples === | ||
| + | < | ||
| + | CurrentCoords 15 GetUnitsInRange | ||
| + | 0 do | ||
| + | | ||
| + | < | ||
| + | loop | ||
| + | |||
| + | </ | ||