User Tools

Site Tools


4rpl:commands:specialtargets

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
4rpl:commands:specialtargets [2023/09/24 15:39] – If no unit is found, -1 is returned. Vertu4rpl:commands:specialtargets [2024/03/31 02:53] (current) – removed karsten75
Line 1: Line 1:
-~~NOTOC~~ 
-<=[[4rpl:start| Index]] 
  
-:!: Available in version 1.3 and later. 
-====== GetSpecialTargets====== 
-GetSpecialTargets(<-specialTarget <-worldPosition <-range <-includeIsBuilding) ->units 
- 
-===== Description ===== 
-Finds the units that are tagged as a special target within range (a float) from worldPosition (a vector3). The 'specialTarget' argument is a V4 that specifies the target types. See [[GetUnitSpecialTarget]]. The return value is a list of units. The units in the list are sorted with the closest at position 0. 
- 
-If no unit is found, -1 is returned. 
-             
-===== Examples ===== 
-<code 4rpl> 
-GetSpecialTargets(V4(1 1 0 0) GetUnitPosition(self) GetUnitRange(self) false) ->units 
-</code> 
- 
-<=[[4rpl:start| Index]] 
4rpl/commands/specialtargets.1695569989.txt.gz · Last modified: 2025/02/14 14:56 (external edit)