SBarrelLength
How far out along the second weapon's barrel its muzzle sits.
- 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. It is measured along the barrel after the barrel has been pitched, so the muzzle swings up and down with the gun while the mounting point stays put. Only the second weapon slot uses it.
[MYTANK] ; the Image ID of a UnitTypeSecondaryFireFLH=100,0,20SBarrelLength=40 ; the second weapon's muzzle sits 40 leptons out along its barrelThe muzzle places the firing animation, a laser beam, and the start of a sonic wave or an attached particle system. Where the projectile is created depends on the object:
- An AircraftType, BuildingType or UnitType creates it at the mounting point that
SecondaryFireFLHandTurretOffsetfix, which this key does not move. - An InfantryType creates it at the muzzle, so this key moves the projectile too.
A value above 0 also advances the second weapon’s projectile up to two steps along its flight as soon as it is fired. The second step is skipped if the first ends the projectile. Laser weapons and Inviso=yes projectiles are not advanced.
A structure that takes its firing points from VoxelBarrelOffsetToBarrelEnd or PrimaryFirePixelOffset ignores this key, as the SecondaryFireFLH page describes.