Usage:
ObjectTemplate.SetVehicleIcon
image
Argument values:
argument 1: | "Vehicle/IconBlk_Medal.tga", "Vehicle/IconHoHa.tga", "Vehicle/IconIlyushin.tga", "Vehicle/IconKettenKrad.tga", "Vehicle/IconLynx.tga", "Vehicle/IconSexton.tga", "Vehicle/Icon_BMW.tga", "Vehicle/Icon_Browning.tga", ... |
Description: This HUD icon shows what sort of vehicle or emplacement you are currently inside.
See the HUD Icon Tutorial for details.
Related properties: SetVehicleIconPos, SetVehicleCategory
Used in object types (and how often in each type): PlayerControlObject (67%)
Used in a total of 91 .con files: Objects.con
Parent directories of these .con files: objects/Vehicles, objects/Stationary_Weapons, Bf1942/Levels
Example: (from objects/Vehicles/Land/m3a1/Objects.con)
rem *** M3A1 ***
ObjectTemplate.Create PlayerControlObject M3A1
ObjectTemplate.NameTagOffset 0/-0.4/1
ObjectTemplate.SetNetworkableInfo M3A1BodyInfo
ObjectTemplate.SaveInSeparateFile 1
ObjectTemplate.CullRadiusScale 5
ObjectTemplate.HasMobilePhysics 1
ObjectTemplate.HasDynamicShadow 1
ObjectTemplate.ExplosionRadius 8
ObjectTemplate.ExplosionDamage 5
ObjectTemplate.ExitTimer 1
ObjectTemplate.Drag 2
ObjectTemplate.Mass 15000
ObjectTemplate.HasCollisionPhysics 1
ObjectTemplate.HasResponsePhysics 1
ObjectTemplate.HasArmor 1
ObjectTemplate.SpeedMod 2
ObjectTemplate.Hitpoints 100
ObjectTemplate.Maxhitpoints 100
ObjectTemplate.Material 45
ObjectTemplate.CriticalDamage 16
ObjectTemplate.HpLostWhileCriticalDamage 1.5
ObjectTemplate.ExplosionForceMod 13
ObjectTemplate.HpLostWhileUpSideDown 10
ObjectTemplate.HpLostWhileDamageFromWater 10
ObjectTemplate.AddArmorEffect 50 e_M3a1Damage 0/0.5/2.5
ObjectTemplate.AddArmorEffect 16 e_M3a1Fire 0/0.7/3
ObjectTemplate.AddArmorEffect 0 e_ExplGas 0/0/0
ObjectTemplate.AddArmorEffect 0 e_scrapmetal 0/0/0
ObjectTemplate.AddArmorEffect -1 WaterWaterExplosion 0/0/0
ObjectTemplate.DamageFromWater 1
ObjectTemplate.AiTemplate M3A1
rem -------------------------------------
ObjectTemplate.AddTemplate lodM3A1
rem -------------------------------------
ObjectTemplate.SetSoldierExitLocation -2/0/0 0/0/0
ObjectTemplate.GUIIndex 22
ObjectTemplate.SetVehicleIcon "Vehicle/Icon_m3a1.tga"
ObjectTemplate.SetVehicleIconPos 40/81
ObjectTemplate.SetPrimaryAmmoBar ABNone
ObjectTemplate.SetCrossHairType CHTNone
ObjectTemplate.SetVehicleCategory VCLand
ObjectTemplate.SetVehicleType VTApc
ObjectTemplate.SetToolTipType TTApc
ObjectTemplate.SetMinimapIcon "Minimap/minimap_icon_apc_16x16.tga"
ObjectTemplate.HasRestrictedExit 1
Go to the ObjectTemplate properties list page, ObjectTemplate page, All Properties list, or Main scripting page.