~~NOTOC~~
<=[[4rpl:start| Index]]
* [[4rpl:commands:GetUnitFireOffset|Get]]
* [[4rpl:commands:SetUnitFireOffset|Set]]
====== 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))
<=[[4rpl:start| Index]]