SetStrength Property

Usage:
   WeaponTemplate.SetStrength string number

Argument values:

argument 1:    Air, HeavyArmour, Infantery, Infantry, LightArmour, NavalArmour, Submarine
argument 2:    range is 0.0 to 20.0; most commonly 0.0

Used in a total of 111 .con files: Aitemplates.con, Weapons.con

Parent directories of these .con files: objects/Vehicles, objects/Stationary_Weapons, objects/HandWeapons, Bf1942/Levels

Example: (from objects/Vehicles/Land/M3Grant/AI/Weapons.con)
   rem *** Add gun ***
   WeaponTemplate.Create M3GrantMainGun
   WeaponTemplate.Burst 0
   WeaponTemplate.Indirect 0
   WeaponTemplate.MinRange 2.0
   WeaponTemplate.MaxRange 250.0
   WeaponTemplate.WeaponActivate PINone
   WeaponTemplate.WeaponFire PIFire
   WeaponTemplate.SetStrength Infantry 12.0
   WeaponTemplate.SetStrength LightArmour 5.0
   WeaponTemplate.SetStrength HeavyArmour 0.0
   WeaponTemplate.SetStrength NavalArmour 0.0
   WeaponTemplate.SetStrength Submarine 0.0
   WeaponTemplate.SetStrength Air 1.0


Go to the WeaponTemplate properties list page, WeaponTemplate page, All Properties list, or Main scripting page.