User Tools

Site Tools


4rpl:commands:setunitfireoffset

Index

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

Index

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