Skip to content

TurretOffset

Moves an object's turret forward from its center along the centerline.

Specification
Applies to
AircraftTypeBuildingTypeInfantryTypeUnitType
File
art.ini
Section
[<Image ID>]Image ID: Image= value; ObjectType ID when omitted
Value
integer
When omitted
0

The distance is in leptons, 256 to a cell. A positive value pushes the turret toward the front; a negative one pulls it back.

art.ini
[MYTANK] ; the Image ID of a UnitType
TurretOffset=-40 ; the turret sits behind the middle of the hull

Firing adds the distance to the X component of every weapon slot’s firing offset, so both the mounting point and the muzzle move with the turret and neither PrimaryFireFLH nor SecondaryFireFLH has to repeat the displacement. A vehicle’s drawn voxel turret and voxel barrel are moved out by this distance along the hull’s heading and then turned about that point, so the turret pivots where its artwork sits rather than at the middle of the body. A building displaces its turret art along the turret’s own heading instead, which matches where it fires from.