SetAmmoIcon Property

Usage:
   ObjectTemplate.SetAmmoIcon image

Argument values:

argument 1:    "Ammo/Ammobar_icon_CommandoKnife_64x32.tga", "Ammo/Ammobar_icon_EliteKnife_64x32.tga", "Ammo/Ammobar_icon_RifleGranade_64x32.tga", "Ammo/Icon_bazooka_64x32.tga", "Ammo/Icon_demokit.tga", "Ammo/Icon_grenadeallies_64x32.tga", ...

Description: Sets which ammo icon is displayed for some handweapons, e.g. in file Objects/HandWeapons/Bazooka/Objects.con. There are icons for artillery, bazooka shells, bombs, machinegun bullets, repair kit, med kit, etc. See the lower right corner of the image for a display with one of these icons.

See the HUD Icon Tutorial for details.

Related properties: SetHudAmmoType, SetCrossHairType

Used in object types (and how often in each type): HandFireArms (13%)

Used in a total of 12 .con files: Objects.con

Parent directory of these .con files: objects/HandWeapons

Example: (from objects/HandWeapons/Detonator/Objects.con)
   ObjectTemplate.Create HandFireArms Detonator
   ObjectTemplate.ItemIndex 11
   ObjectTemplate.MagSize -1
   ObjectTemplate.NumOfMag -1
   ObjectTemplate.MagType 0
   ObjectTemplate.Reloadtime 1
   ObjectTemplate.RoundOfFire 1
   ObjectTemplate.FireOnce 1
   ObjectTemplate.AltFireOnce 1
   ObjectTemplate.AutoReload 0
   ObjectTemplate.GUIIndex 15
   ObjectTemplate.SetHudAmmoType ATIcon
   ObjectTemplate.SetAmmoIcon "Ammo/Icon_demokit.tga"
   ObjectTemplate.SetCrossHairType CHTIcon
   ObjectTemplate.SetHasMag 0
   ObjectTemplate.HasDynamicShadow 1
   ObjectTemplate.SoldierCameraPosition 0.06/-0.07/0.3
   ObjectTemplate.LoadSoundScript Sounds/Detonator.ssc
   ObjectTemplate.CreateSkeleton animations/Detonator.ske
   ObjectTemplate.UseSkeletonPartAsMain base
   ObjectTemplate.AddTemplate DetonatorLod


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