Usage:
KitTemplate.SetBattleStrength
string number
Argument values:
argument 1: | Air, HeavyArmour, Infantry, LightArmour, NavalArmour, Submarine |
argument 2: | range is 0.0 to 8.0; most commonly 0.0 |
Description: For the AI system (bots). Sets how effective a type of soldier is against a particular type of vehicle or another soldier. For example, the anti-tank soldier uses these values:
KitTemplate.SetBattleStrength Infantry 2.0 KitTemplate.SetBattleStrength LightArmour 8.0 KitTemplate.SetBattleStrength HeavyArmour 4.0 KitTemplate.SetBattleStrength NavalArmour 0.0 KitTemplate.SetBattleStrength Submarine 0.0 KitTemplate.SetBattleStrength Air 0.0
since his strength is against armor. Each soldier type has its effectiveness rated against each type of vehicle/soldier.
Used in object types (always present 100% of the time): AT, AT_Alt, Assault, Assault_Alt, Engineer, Engineer_Alt, Medic, RocketPack, Scout, Scout_Alt
Used in a total of 3 .con files: Objects.con, Objectsmod.con
Parent directory of these .con files: objects/Items
Example: (from objects/Items/BaseKit/Ai/Objects.con)
rem *** KitTemplates ***
rem *** Medic ***
KitTemplate.Create Medic Medic
KitTemplate.SetStrategicStrength 0 1
KitTemplate.SetStrategicStrength 1 1
KitTemplate.SetBattleStrength Infantry 6.0
KitTemplate.SetBattleStrength LightArmour 3.0
KitTemplate.SetBattleStrength HeavyArmour 1.0
KitTemplate.SetBattleStrength NavalArmour 0.0
KitTemplate.SetBattleStrength Submarine 0.0
KitTemplate.SetBattleStrength Air 0.0
Go to the KitTemplate properties list page, KitTemplate page, All Properties list, or Main scripting page.