SetVehicleCategory Property

Usage:
   ObjectTemplate.SetVehicleCategory name

Argument values:

argument 1:    Land, Sea, VCAir, VCLand, VCSea; most commonly VCLand

Description: This property determines which type of controls (as defined by the player) the vehicle will use to drive it. There are land, sea, and air key and mouse mappings that the player can define, and this property specifies which are used.

Related properties: GUIIndex, SetCrossHairType, SetPrimaryAmmoBar, SetSoldierExitLocation, SetToolTipType, SetVehicleIcon, SetVehicleIconPos

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 Bf1942/Levels/Battle_of_Britain/Objects/Ju88A/Objects.con)
   rem *** Ju88A ***
   ObjectTemplate.Create PlayerControlObject Ju88A
   ObjectTemplate.NameTagOffset 0/0.6/3.05
   ObjectTemplate.SetNetworkableInfo Ju88ABodyInfo
   ObjectTemplate.SaveInSeparateFile 1
   ObjectTemplate.CullRadiusScale 5
   ObjectTemplate.HasMobilePhysics 1
   ObjectTemplate.HasDynamicShadow 1
   ObjectTemplate.Drag 0.005
   ObjectTemplate.Mass 15000
   ObjectTemplate.InertiaModifier 0.6/0.6/0.3
   ObjectTemplate.HasCollisionPhysics 1
   ObjectTemplate.HasResponsePhysics 1
   ObjectTemplate.ExplosionRadius 8
   ObjectTemplate.ExplosionDamage 5
   ObjectTemplate.HasArmor 1
   ObjectTemplate.AngleMod 1
   ObjectTemplate.SpeedMod 3
   ObjectTemplate.Hitpoints 300
   ObjectTemplate.Maxhitpoints 300
   ObjectTemplate.Material 60
   ObjectTemplate.CriticalDamage 30
   ObjectTemplate.HpLostWhileCriticalDamage 4
   ObjectTemplate.ExplosionForceMod 5
   ObjectTemplate.HpLostWhileUpSideDown 10
   ObjectTemplate.HpLostWhileDamageFromWater 10
   ObjectTemplate.AddArmorEffect 200 em_B17Damage -2.984/-0.127/4.4
   ObjectTemplate.AddArmorEffect 200 em_PlaneDamage -2.984/-0.127/4.4
   ObjectTemplate.AddArmorEffect 100 em_B17Damage -2.984/-0.127/4.4
   ObjectTemplate.AddArmorEffect 100 em_PlaneDamage -2.984/-0.127/4.4
   ObjectTemplate.AddArmorEffect 100 em_B17Damage 2.984/-0.127/4.4
   ObjectTemplate.AddArmorEffect 100 em_PlaneDamage 2.984/-0.127/4.4
   ObjectTemplate.AddArmorEffect 30 e_StukaFire -2.984/-0.127/4.4
   ObjectTemplate.AddArmorEffect 30 e_StukaFire 2.984/-0.127/4.4
   ObjectTemplate.AddArmorEffect 0 e_ExplGas 0/0/0
   ObjectTemplate.AddArmorEffect 0 e_ScrapMetal_Ju88A 0/0/0
   ObjectTemplate.AddArmorEffect -1 WaterWaterExplosion 0/0/0
   ObjectTemplate.DamageFromWater 1
   ObjectTemplate.AiTemplate B17
   rem -------------------------------------
   ObjectTemplate.AddTemplate lodJu88A
   rem -------------------------------------
   ObjectTemplate.SetSoldierExitLocation -1.399/-1.299/5.05 0/0/0
   ObjectTemplate.GUIIndex 28
   ObjectTemplate.SetVehicleIcon "Vehicle/Junker_Icon.tga"
   ObjectTemplate.SetVehicleIconPos 82/113
   ObjectTemplate.SetNumberOfWeaponIcons 1
   ObjectTemplate.SetPrimaryAmmoIcon "Ammo/Icon_bomb.tga"
   ObjectTemplate.SetPrimaryAmmoBar ABAmmoBarReloadBar
   ObjectTemplate.SetCrossHairType CHTNone
   ObjectTemplate.SetVehicleCategory VCAir
   ObjectTemplate.SetVehicleType VTBomber
   ObjectTemplate.SetToolTipType TTBomber
   ObjectTemplate.SetMinimapIcon "Minimap/minimap_icon_plane_16x16.tga"


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