Usage:
ObjectTemplate.NumberOfWeaponIcons
number
Argument values:
argument 1: | range is 0 to 2; most commonly 1 |
Description: This property is used exclusively in Battlefield Vietnam. Equivalent to SetNumberOfWeaponIcons.
Related properties: AddTemplate, GUIIndex, SetSoldierExitLocation, VehicleCategory, VehicleIconPos
Used in object types (and how often in each type): PlayerControlObject (20%)
Used in a total of 32 .con files: Objects.con
Parent directories of these .con files: vietnamObjects/Vehicles, vietnamObjects/HandWeapons
Example: (from vietnamObjects/HandWeapons/Mortar/Objects.con)
ObjectTemplate.Create PlayerControlObject Mortar
ObjectTemplate.NetworkableInfo mortar_BodyInfo
ObjectTemplate.Geometry Mortar_Base
ObjectTemplate.HasDynamicShadow 1
ObjectTemplate.HasMobilePhysics 1
ObjectTemplate.HasCollisionPhysics 1
ObjectTemplate.HasResponsePhysics 0
ObjectTemplate.Haspointphysics 0
ObjectTemplate.ExplosionRadius 0
ObjectTemplate.ExplosionDamage 0
ObjectTemplate.HasArmor 1
ObjectTemplate.Hitpoints 5
ObjectTemplate.Maxhitpoints 5
ObjectTemplate.Material 45
ObjectTemplate.GUIIndex 19
ObjectTemplate.CanConvertToAmmo 1
ObjectTemplate.VehicleIconPos 40/76
ObjectTemplate.NumberOfWeaponIcons 1
ObjectTemplate.CrossHairType CHTIcon
ObjectTemplate.CriticalDamage 2
ObjectTemplate.HpLostWhileDamageFromWater 20
ObjectTemplate.Drag .02
ObjectTemplate.Mass 2500
ObjectTemplate.CriticalDamage 1
ObjectTemplate.HpLostWhileCriticalDamage 0
ObjectTemplate.AddArmorEffect 0 e_scrapmetal_willy 0/0/0
ObjectTemplate.VehicleCategory VCLand
ObjectTemplate.VehicleType VTArtillery
ObjectTemplate.ArtPos 1
ObjectTemplate.DirBarXScale 70
ObjectTemplate.DirBarYScaleAbove 37.5
ObjectTemplate.DirBarYScaleBelow 0
ObjectTemplate.DirBarYScaleMin -90
ObjectTemplate.DirBarYScaleMax -45
ObjectTemplate.TimeToLiveAfterDeath 0
rem --------------------------------------------
ObjectTemplate.AddArmorEffect 0 e_ExplGas 0/0/0
ObjectTemplate.AddTemplate mortarPoint
ObjectTemplate.SetPosition 0/0/0
ObjectTemplate.SetRotation 0/0/0
ObjectTemplate.AddTemplate MortarKneelingSeat
ObjectTemplate.SetPosition 0/0/-0.2
ObjectTemplate.SetRotation 0/0/0
ObjectTemplate.AddTemplate mortarEntry
ObjectTemplate.SetPosition 0/-0.1/-1
ObjectTemplate.SetRotation 0/0/0
ObjectTemplate.AddTemplate MortarFrontSpringR
ObjectTemplate.SetPosition -0.2/0.17/-0.3
ObjectTemplate.SetRotation 0/0/0
ObjectTemplate.AddTemplate MortarFrontSpringL
ObjectTemplate.SetPosition 0.2/0.17/-0.3
ObjectTemplate.SetRotation 0/0/0
ObjectTemplate.AddTemplate MortarBackSpringR
ObjectTemplate.SetPosition -0.2/0.17/0.3
ObjectTemplate.SetRotation 0/0/0
ObjectTemplate.AddTemplate MortarBackSpringL
ObjectTemplate.SetPosition 0.2/0.17/0.3
ObjectTemplate.SetRotation 0/0/0
Go to the ObjectTemplate properties list page, ObjectTemplate page, All Properties list, or Main scripting page.