User Tools

Site Tools


4rpl:commands:getunitspecialtarget

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

:NOTE: Spores, Blobs, etc, aren't special targets. (Blobs aren't V4(1 0 0 0), spores aren't V4(0 1 0 0)).

Examples

traceAllSP(GetUnitSpecialTarget(self))

Index

4rpl/commands/getunitspecialtarget.txt · Last modified: 2023/09/24 14:18 by Vertu