Jump to content

WeaponCount

From ModEnc²
Revision as of 09:53, 2 January 2010 by en>Renegade (Fixed weird template argument issue.)
Tiberian Dawn Red Alert Tiberian Sun Firestorm Red Alert 2 Yuri's Revenge
Flag: WeaponCount
File(s): Rules(md).ini
Values: unsigned integers
Default: 0
Applicable to: VehicleTypes, BuildingTypes


Specifies the amount of weapons this object has. Used for special weapon systems, for example, turret-changers (Gunner=yes), charge turrets (IsChargeTurret=yes), or gattling logic (IsGattling=yes).

In those cases, the game parses weapons specified by (Elite)Weapon%d= , where %d represents the number between 1 and WeaponCount, as opposed to (Elite)Primary/Secondary it loads normally. Then, (Elite)Weapon1 is used as the default weapon instead of Primary.