~~NOTOC~~ <=[[4rpl:start| Index]] * [[4rpl:commands:GetUnitFireOffset|Get]] * [[4rpl:commands:SetUnitFireOffset|Set]] ====== SetUnitFireOffset ====== SetUnitFireOffset(<-unit <-pos) ===== Description ===== Sets the fire offset of a unit. The fire offset is the vector representing a 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 ===== SetUnitFireOffset(self V3(0 3 0)) #Indicate this unit should produce a projectile or beam from 3 above the base <=[[4rpl:start| Index]]