Skip to content

Secondary

The WeaponType in the object type's second weapon slot.

Specification
Applies to
AircraftTypeBuildingTypeInfantryTypeUnitType
File
rules.ini
Section
[<ObjectType ID>]
Value
class
When omitted
none
rules.ini
[MYTANK] ; example UnitType
Primary=MyCannon ; each names its own weapon section
Secondary=MyMachineGun

An object fires its second weapon only at targets where it scores higher than the weapon in the first slot. Each weapon scores by its warhead’s Verses value against the target’s armor. The score doubles while the target is in that weapon’s range and drops to zero while the weapon cannot fire at it. A tie goes to the first slot. Which weapon the score assumes gives the full rule, including how a web weapon overrides the scores.

An elite object keeps this weapon: only the first slot switches to Elite. A structure fitted with an upgrade that has a second weapon of its own uses the upgrade’s weapon in this slot instead.

A laser or sonic weapon in this slot takes some of its settings from the weapon in the first slot, as IsLaser and IsSonic describe.

Writing none or <none> empties the slot. An ID with no section of its own registers a WeaponType with only its defaults.

See also — target-selection