User Tools

Site Tools


4rpl:commands:nearestspecialtarget

This is an old revision of the document!


Index

:!: Available in version 1.3 and later.

GetNearestSpecialTarget

GetNearestSpecialTarget(<-specialTarget <-worldPosition <-range <-includeIsBuilding) ->unit

Description

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.

Examples

GetNearestSpecialTarget(3 GetUnitPosition(self) GetUnitRange(self) false) ->unit

Index

4rpl/commands/nearestspecialtarget.1613343958.txt.gz · Last modified: 2025/02/14 14:56 (external edit)