This is an old revision of the document!
⇐ Index
Available in version 1.3 and later.
GetNearestSpecialTarget(<-specialTarget <-worldPosition <-range <-includeIsBuilding) ->unit
Finds the nearest unit that is tagged as a special target within range (a float) from worldPosition (a vector3). The 'specialTarget' argument should be 1 through 4. 1 is for units that snipers target, 2 is for units that missile launchers target. 3 and 4 are for 4rpl use.
GetNearestSpecialTarget(3 GetUnitPosition(self) GetUnitRange(self) false) ->unit
⇐ Index