Usage:
ObjectTemplate.SetHealthBarIcon
image
Argument values:
argument 1: | "Ingame/Healthbar_empty_assault_64x64.tga", "Ingame/Healthbar_empty_at_64x64.tga", "Ingame/Healthbar_empty_engineer_64x64.tga", "Ingame/Healthbar_empty_medic_64x64.tga", "Ingame/Healthbar_empty_scout_64x64.tga", ... |
Description: This specifies the empty health bar icon. A commonly used technique in the HUD is to have two icons for each gauge, one showing the gauge empty and one showing it full. The actual value of the property is then used to display part of one icon and part of the other on the HUD, so showing any state between the two.
See the HUD Icon Tutorial for details.
Related properties: SetHealthBarFullIcon
Used in object types (and how often in each type): Kit (55%)
Used in a total of 65 .con files: Objects.con
Parent directory of these .con files: objects/Items
Example: (from objects/Items/ItKit/Scout/Objects.con)
ObjectTemplate.Create Kit Italian_Scout
ObjectTemplate.SetType Scout
ObjectTemplate.SetKitTeam 1
ObjectTemplate.Geometry Kit_Axis_Scout
ObjectTemplate.SetHasCollisionPhysics 1
ObjectTemplate.NetworkableInfo KitInfo
ObjectTemplate.AddTemplate It_Scout_Helm
ObjectTemplate.AddTemplate Radio
ObjectTemplate.AddTemplate It_Hip_Pack
ObjectTemplate.SetHealthBarIcon "Ingame/Healthbar_empty_scout_64x64.tga"
ObjectTemplate.SetHealthBarFullIcon "Ingame/Healthbar_full_scout_64x64.tga"
ObjectTemplate.AddWeaponIcon "Weapon/Icon_axisKnife.tga"
ObjectTemplate.AddWeaponIcon "Weapon/Icon_walter.tga"
ObjectTemplate.AddWeaponIcon "Weapon/Icon_m98_scope.tga"
ObjectTemplate.AddWeaponIcon "Weapon/Icon_grenadeaxis.tga"
ObjectTemplate.AddWeaponIcon "Weapon/Icon_binoculars.tga"
ObjectTemplate.SetKitIcon 0 "kits/Icon_scout_axis_selected.tga"
ObjectTemplate.SetKitName 0 "RESPAWN_SCOUT"
ObjectTemplate.SetKitActiveName 0 "RESPAWN_ACTIVE_SCOUT"
ObjectTemplate.AddTemplate k98Sniper
ObjectTemplate.AddTemplate walterp38
ObjectTemplate.AddTemplate KnifeAxis
ObjectTemplate.AddTemplate Binoculars
ObjectTemplate.AddTemplate GrenadeAxis
ObjectTemplate.AiTemplate Scout
Go to the ObjectTemplate properties list page, ObjectTemplate page, All Properties list, or Main scripting page.