SetKitIcon Property

Usage:
   ObjectTemplate.SetKitIcon number image

Argument values:

argument 1:    range is 0 to 47; most commonly 4
argument 2:    "Weapon/AK47.dds", "Weapon/AKMS.dds", "Weapon/APMines.dds", "Weapon/C4.dds", "Weapon/CAR15.dds", "Weapon/Car15.dds", "Weapon/Law.dds", "Weapon/M14.dds", "Weapon/M16.dds", "Weapon/M16snipe.dds", "Weapon/M21.dds", ...

Description: This associates the class icon on the soldier spawn screen with the soldier kit file.

See the HUD Icon Tutorial for details.

Related properties: SetKitActiveName, SetKitName, SetTeamFlagIcon

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/RussKit/Scout/Objects.con)
   ObjectTemplate.Create Kit Rus_Scout
   ObjectTemplate.SetType Scout
   ObjectTemplate.SetKitTeam 2
   ObjectTemplate.Geometry Kit_Allies_Scout
   ObjectTemplate.SetHasCollisionPhysics 1
   ObjectTemplate.NetworkableInfo KitInfo
   ObjectTemplate.AddTemplate Russ_ScoutHelm
   ObjectTemplate.AddTemplate Radio
   ObjectTemplate.AddTemplate Russian_hippack
   ObjectTemplate.SetHealthBarIcon "Ingame/Healthbar_empty_scout_64x64.tga"
   ObjectTemplate.SetHealthBarFullIcon "Ingame/Healthbar_full_scout_64x64.tga"
   ObjectTemplate.AddWeaponIcon "Weapon/Icon_alliesKnife.tga"
   ObjectTemplate.AddWeaponIcon "Weapon/Icon_colt.tga"
   ObjectTemplate.AddWeaponIcon "Weapon/Icon_no4_scope.tga"
   ObjectTemplate.AddWeaponIcon "Weapon/Icon_grenadeallies.tga"
   ObjectTemplate.AddWeaponIcon "Weapon/Icon_binoculars.tga"
   ObjectTemplate.SetKitIcon 0 "kits/Icon_scout_allies_selected.tga"
   ObjectTemplate.SetKitName 0 "RESPAWN_SCOUT"
   ObjectTemplate.SetKitActiveName 0 "RESPAWN_ACTIVE_SCOUT"
   ObjectTemplate.AddTemplate No4Sniper
   ObjectTemplate.AddTemplate Colt
   ObjectTemplate.AddTemplate KnifeAllies
   ObjectTemplate.AddTemplate Binoculars
   ObjectTemplate.AddTemplate GrenadeAllies
   ObjectTemplate.AiTemplate Scout


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