Index

GetUnitTargetOffset

GetUnitTargetOffset(<-unit) ->pos

Description

Pushes a vector representing the value of the unit's target offset to the stack. The target offset is the position relative to the unit that the unit should be targeted, or shot at. For instance, if a unit sits on the terrain but has some height, you would want the target offset to be something like (0,1,0) so that units that shoot at the unit fire into the middle of the unit. Typically, the X and Z values are 0 (the center of the unit) and the Y value specifies a height.

Examples

traceAllSP(GetUnitTargetOffset(self))

Index