User Tools

Site Tools


4rpl:commands:getunitfireoffset

Index

GetUnitFireOffset

GetUnitFireOffset(<-unit) ->pos

Description

Pushes a vector representing the value of the unit's fire offset to the stack. The fire offset is the position relative to the unit that the unit should produce any projectile or beam from. It is set in the cpack unit editor. Typically, the X and Z values are 0 (the center of the unit) and the Y value specifies a height.

Examples

traceAllSP(GetUnitFireOffset(self))

Index

4rpl/commands/getunitfireoffset.txt · Last modified: 2021/01/24 14:41 by Sanian