User Tools

Site Tools


4rpl:commands:setunitfireoffset

This is an old revision of the document!


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.1610121708.txt.gz · Last modified: 2025/02/14 14:56 (external edit)