User Tools

Site Tools


4rpl:commands:getunitspecialtarget

This is an old revision of the document!


Index

:!: Available in version 1.3 and later.

GetUnitSpecialTarget

GetUnitSpecialTarget({-unit) ->specialTargetVal

Description

Gets a V4 representing the current special target status of the unit. The V4 that is returned tells which target types the unit is tagged as. A value of 0 or 1 will be in each field of the V4. A value of 1 in a field means the unit is targeted by that type of weapon.
targetVal.0 : Snipers will target
targetVal.1 : Missiles will target
targetVal.2 : Custom0 will target
targetVal.3 : Custom1 will target

Examples

traceAllSP(GetUnitSpecialTarget(self))

Index

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