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 moves the turret toward the front, and a negative value moves it back.
[MYTANK] ; the Image ID of a UnitTypeTurretOffset=-40 ; the turret sits behind the middle of the hullThe offset moves where shots come from. It is added to the forward (X) component of every weapon slot’s firing offset, so neither PrimaryFireFLH nor SecondaryFireFLH has to repeat it. Both the point a projectile starts from and the muzzle move.
The offset also moves the drawn turret:
- A vehicle’s voxel turret and barrel are drawn this far along the hull’s heading, and turn about that point. The turret therefore pivots where its artwork sits, not at the middle of the hull.
- A structure’s voxel turret (
TurretAnimIsVoxel=yes) is drawn this far along the turret’s heading, which matches where it fires from. - An aircraft or an infantryman has no turret artwork, so only its firing offsets move.