This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
4rpl:commands:nearestspecialtarget [2021/02/15 18:15] – virgilw | 4rpl:commands:nearestspecialtarget [2024/01/12 23:22] – [Description] Forward note for spores, blobs, etc. Vertu | ||
---|---|---|---|
Line 8: | Line 8: | ||
===== Description ===== | ===== Description ===== | ||
Finds the nearest unit that is tagged as a special target within range (a float) from worldPosition (a vector3). The ' | Finds the nearest unit that is tagged as a special target within range (a float) from worldPosition (a vector3). The ' | ||
+ | |||
+ | If no unit matching the special target parameter is found, -1 is returned. | ||
+ | |||
+ | :NOTE: For clarification: | ||
+ | :WARNING: Spores, Blobs, etc, aren't special targets and will not be detected. | ||
| | ||
===== Examples ===== | ===== Examples ===== |