Usage:
ObjectTemplate.HasArmor
boolean
Argument values:
argument 1: | 1; most commonly 1 |
Description: This property sets the item as being destroyable, i.e., the object can take damage. If you remove this property from a vehicle it will be completely indestructable.
Related properties: Hitpoints, Material
Used in object types (and how often in each type): Bundle (2%), ClusterProjectile (100%), FireArms (2%), HandFireArms (9%), PlayerControlObject (48%), Projectile (12%), simpleobject (1%)
Used in a total of 177 .con files: Commonsoldierdata.inc, Objects.con, Weapons.con
Parent directories of these .con files: objects/Vehicles, objects/Stationary_Weapons, objects/Soldiers, objects/Objectives, objects/MOVE_FILES, objects/HandWeapons, Bf1942/Levels
Example: (from objects/Vehicles/Land/Flak_38/Objects.con)
rem *** flak38 ***
ObjectTemplate.Create PlayerControlObject flak38
ObjectTemplate.SetNetworkableInfo flak38_BodyInfo
ObjectTemplate.SaveInSeparateFile 1
ObjectTemplate.HasCollisionPhysics 1
ObjectTemplate.HasResponsePhysics 1
ObjectTemplate.HasArmor 1
ObjectTemplate.Hitpoints 100
ObjectTemplate.Maxhitpoints 100
ObjectTemplate.Material 45
ObjectTemplate.AddArmorEffect 35 e_AA-GunDamage 0/0.3/0
ObjectTemplate.AddArmorEffect 0 e_ScrapAAFlak38 0/1.2/0
ObjectTemplate.AddArmorEffect 0 e_ExplGas 0/1.2/0
ObjectTemplate.AiTemplate Flak38
ObjectTemplate.TimeToLiveAfterDeath 0
rem -------------------------------------
ObjectTemplate.AddTemplate flak38_Entry
ObjectTemplate.AddTemplate flak38_body
ObjectTemplate.AddTemplate flak38_base
rem -------------------------------------
ObjectTemplate.SetSoldierExitLocation -2/0.5/0 0/0/0
ObjectTemplate.GUIIndex 19
ObjectTemplate.SetVehicleIcon "Vehicle/Icon_flak38.tga"
ObjectTemplate.SetVehicleIconPos 45/76
ObjectTemplate.SetNumberOfWeaponIcons 1
ObjectTemplate.SetPrimaryAmmoIcon "Ammo/Icon_cannon.tga"
ObjectTemplate.SetPrimaryAmmoBar ABIconOnly
ObjectTemplate.SetCrossHairType CHTNone
ObjectTemplate.SetVehicleCategory VCLand
ObjectTemplate.SetVehicleType VTAAGun
ObjectTemplate.SetToolTipType TTAAGun
ObjectTemplate.SetMinimapIcon "Minimap/minimap_icon_stationary_16x16.tga"
Go to the ObjectTemplate properties list page, ObjectTemplate page, All Properties list, or Main scripting page.