Usage:
ObjectTemplate.SetKitActiveName
number name
Argument values:
argument 1: | range is 0 to 47; most commonly 4 |
argument 2: | "RESPAWN_ACTIVE_ASSAULT", "RESPAWN_ACTIVE_AT", "RESPAWN_ACTIVE_ENGINEER", "RESPAWN_ACTIVE_MEDIC", "RESPAWN_ACTIVE_SCOUT"; most commonly "RESPAWN_ACTIVE_ASSAULT" |
Description: When you spawn as a soldier, you pick one of the five kits on the menu. This property specifies the kit selected. The number specifies a unique soldier class (in BF 1942 this corresponds to the position on the menu for selection, 0-4, but in BF Vietnam these numbers vary). The name specifies the active soldier.
Related properties: SetKitIcon, SetKitName
Used in object types (and how often in each type): Kit (95%)
Used in a total of 88 .con files: Objects.con
Parent directory of these .con files: objects/Items
Example: (from objects/Items/JapKit/Medic/Objects.con)
ObjectTemplate.Create Kit Jap_Medic
ObjectTemplate.SetType Medic
ObjectTemplate.SetKitTeam 1
ObjectTemplate.Geometry Kit_Axis_Medic
ObjectTemplate.SetHasCollisionPhysics 1
ObjectTemplate.NetworkableInfo KitInfo
ObjectTemplate.AddTemplate Medichelm_jap
ObjectTemplate.AddTemplate Jap_Medic_hippack
ObjectTemplate.SetHealthBarIcon "Ingame/Healthbar_empty_medic_64x64.tga"
ObjectTemplate.SetHealthBarFullIcon "Ingame/Healthbar_full_medic_64x64.tga"
ObjectTemplate.AddWeaponIcon "Weapon/Icon_axisKnife.tga"
ObjectTemplate.AddWeaponIcon "Weapon/Icon_walter.tga"
ObjectTemplate.AddWeaponIcon "Weapon/Icon_japMg.tga"
ObjectTemplate.AddWeaponIcon "Weapon/Icon_grenadeaxis.tga"
ObjectTemplate.AddWeaponIcon "Weapon/Icon_medpack.tga"
ObjectTemplate.SetKitIcon 3 "kits/Icon_medic_axis_selected.tga"
ObjectTemplate.SetKitName 3 "RESPAWN_MEDIC"
ObjectTemplate.SetKitActiveName 3 "RESPAWN_ACTIVE_MEDIC"
ObjectTemplate.AddTemplate MP18
ObjectTemplate.AddTemplate walterP38
ObjectTemplate.AddTemplate KnifeAxis
ObjectTemplate.AddTemplate MedPack
ObjectTemplate.AddTemplate GrenadeAxis
ObjectTemplate.AiTemplate Medic
Go to the ObjectTemplate properties list page, ObjectTemplate page, All Properties list, or Main scripting page.