SetVehicleType Property

Usage:
   ObjectTemplate.SetVehicleType name

Argument values:

argument 1:    AAGun, ItLcvp, VTAAGun, VTATGun, VTApc, VTArmoredCar, VTArtillery, VTBattleship, VTBomber, VTCarrier, VTDefGun, VTDestroyer, VTDiveBomber, VTFighter, VTHeavyTank, VTLcvp, VTLevelBomber, VTLightTank, VTScoutCar, ...

Description: This property specifies the vehicle's "type".

Related properties: SetVehicleCategory

Used in object types (and how often in each type): PlayerControlObject (68%)

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

Parent directories of these .con files: objects/Vehicles, objects/Stationary_Weapons, Bf1942/Levels

Example: (from objects/Vehicles/Land/Pak40/Objects.con)
   rem *** Pak40 ***
   ObjectTemplate.Create PlayerControlObject Pak40
   ObjectTemplate.SetNetworkableInfo Pak40BodyInfo
   ObjectTemplate.SaveInSeparateFile 1
   ObjectTemplate.HasCollisionPhysics 1
   ObjectTemplate.HasResponsePhysics 1
   ObjectTemplate.HasArmor 1
   ObjectTemplate.Hitpoints 50
   ObjectTemplate.Maxhitpoints 50
   ObjectTemplate.Material 45
   ObjectTemplate.AddArmorEffect 35 e_AA-GunDamage 0/0.3/0
   ObjectTemplate.AddArmorEffect 0 e_ScrapPAK40 0/1.2/0
   ObjectTemplate.AddArmorEffect 0 e_ScrapMetal 0/1.2/0
   ObjectTemplate.AiTemplate Pak40
   ObjectTemplate.TimeToLiveAfterDeath 0
   ObjectTemplate.Geometry pak40_carriage_M1
   rem -------------------------------------
   ObjectTemplate.AddTemplate Pak40Entry
   ObjectTemplate.AddTemplate Pak40Mount
   rem -------------------------------------
   ObjectTemplate.SetSoldierExitLocation -2/0.5/0 0/0/0
   ObjectTemplate.GUIIndex 19
   ObjectTemplate.SetVehicleIcon "Vehicle/Icon_pak40.tga"
   ObjectTemplate.SetVehicleIconPos 75/75
   ObjectTemplate.SetNumberOfWeaponIcons 1
   ObjectTemplate.SetPrimaryAmmoIcon "Ammo/Icon_cannon.tga"
   ObjectTemplate.SetPrimaryAmmoBar ABAmmoBarReloadBar
   ObjectTemplate.SetCrossHairType CHTIcon
   ObjectTemplate.SetVehicleCategory VCLand
   ObjectTemplate.SetVehicleType VTATGun
   ObjectTemplate.SetToolTipType TTATGun
   ObjectTemplate.SetMinimapIcon "Minimap/minimap_icon_stationary_16x16.dds"


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