This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| 4rpl:commands:nearestspecialtarget [2021/02/14 23:05] – created virgilw | 4rpl:commands:nearestspecialtarget [2024/03/29 00:22] (current) – Moved Karsten75 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ~~NOTOC~~ | ||
| - | < | ||
| - | :!: Available in version 1.3 and later. | ||
| - | ====== GetNearestSpecialTarget====== | ||
| - | GetNearestSpecialTarget(< | ||
| - | |||
| - | ===== Description ===== | ||
| - | Finds the nearest unit that is tagged as a special target within range (a float) from worldPosition (a vector3). The ' | ||
| - |              | ||
| - | ===== Examples ===== | ||
| - | <code 4rpl> | ||
| - | GetNearestSpecialTarget(3 GetUnitPosition(self) GetUnitRange(self) false) ->unit | ||
| - | </ | ||
| - | |||
| - | < | ||