Usage:
ObjectTemplate.SetKitName
number string name
Argument values:
argument 1: | range is 0 to 47; most commonly 4 |
argument 2: | "AK47, "AKMS-GRENADES", "CAR15-GRENADES", "CAR15-GRENADES-MEDPACK", "M14-TORCH-C4-WRENCH", "M14-TORCH-CLAYMORES-WRENCH", "M14-TORCH-LANDMINE-WRENCH", "M14-TORCH-MINES-WRENCH", "M14-TORCH-MORTAR-WRENCH", ... |
argument 3: | 148", 500-GRENADE", 500-GRENADES", BETTY-BINOCULARS", GRENADES", STICKS-MORTAR-WRENCH" |
Description: Sets the specific class name displayed for a soldier type.
Related properties: SetKitActiveName, SetKitIcon
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/USKit/Medic/Objects.con)
ObjectTemplate.Create Kit US_Medic
ObjectTemplate.SetType Medic
ObjectTemplate.SetKitTeam 2
ObjectTemplate.Geometry Kit_Allies_Medic
ObjectTemplate.SetHasCollisionPhysics 1
ObjectTemplate.NetworkableInfo KitInfo
ObjectTemplate.AddTemplate Medic_helm_us
ObjectTemplate.AddTemplate US_Medic_hippack
ObjectTemplate.AddTemplate US_Britt_Bacpac
ObjectTemplate.SetHealthBarIcon "Ingame/Healthbar_empty_medic_64x64.tga"
ObjectTemplate.SetHealthBarFullIcon "Ingame/Healthbar_full_medic_64x64.tga"
ObjectTemplate.AddWeaponIcon "Weapon/Icon_alliesKnife.tga"
ObjectTemplate.AddWeaponIcon "Weapon/Icon_colt.tga"
ObjectTemplate.AddWeaponIcon "Weapon/Icon_thompson.tga"
ObjectTemplate.AddWeaponIcon "Weapon/Icon_grenadeallies.tga"
ObjectTemplate.AddWeaponIcon "Weapon/Icon_medpack.tga"
ObjectTemplate.SetKitIcon 3 "kits/Icon_medic_allies_selected.tga"
ObjectTemplate.SetKitName 3 "RESPAWN_MEDIC"
ObjectTemplate.SetKitActiveName 3 "RESPAWN_ACTIVE_MEDIC"
ObjectTemplate.AddTemplate Thompson
ObjectTemplate.AddTemplate Colt
ObjectTemplate.AddTemplate KnifeAllies
ObjectTemplate.AddTemplate MedPack
ObjectTemplate.AddTemplate GrenadeAllies
ObjectTemplate.AiTemplate Medic
Go to the ObjectTemplate properties list page, ObjectTemplate page, All Properties list, or Main scripting page.