AddVehicleType Property

Usage:
   ObjectTemplate.AddVehicleType string number number boolean

Argument values:

argument 1:    BF110, BlackMedal, Elco80, F4Phantom, Ho-Ha, Ju88A, KettenKrad, Lcvp, Lynx, M3GMC, M3Grant, Mosquito, Panzeriv, Sexton, Sturmgeschutz, T34, T34-84, Tango, Type38, UH1Assault, UH1Transport, aichival, aichival-t, ...
argument 2:    range is -1 to 0; most commonly -1
argument 3:    range is 2 to 4; most commonly 4
argument 4:    0; most commonly 0

Description: Defines the type of vehicle repaired by this object, i.e. hangars and repair pads. The first argument is the amount of repair the object can do, with "-1" meaning "infinite" (which is the only value BF uses). The second argument is the rate of repair for the given type of object (e.g. for a type of plane). The third argument is the amount the object itself regains in its ability to repair (BF always uses 0, since the amount of repair is always infinite).

Related properties: AddAmmoType, Radius, Team, WorkOnSoldiers

Used in object types (and how often in each type): SupplyDepot (17%)

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

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

Example: (from objects/Buildings/Common/landrep1_supply/Objects.con)
   ObjectTemplate.Create SupplyDepot repairpoint
   ObjectTemplate.Radius 5
   ObjectTemplate.Team 0
   ObjectTemplate.AddVehicleType tiger -1 4 0
   ObjectTemplate.AddVehicleType Panzeriv -1 4 0
   ObjectTemplate.AddVehicleType hanomag -1 4 0
   ObjectTemplate.AddVehicleType wespe -1 4 0
   ObjectTemplate.AddVehicleType kubelwagen -1 4 0
   ObjectTemplate.AddVehicleType sherman -1 4 0
   ObjectTemplate.AddVehicleType m3a1 -1 4 0
   ObjectTemplate.AddVehicleType priest -1 4 0
   ObjectTemplate.AddVehicleType willy -1 4 0
   ObjectTemplate.AddVehicleType m10 -1 4 0
   ObjectTemplate.AddVehicleType chi-ha -1 4 0
   ObjectTemplate.AddVehicleType T34 -1 4 0
   ObjectTemplate.AddVehicleType T34-84 -1 4 0
   ObjectTemplate.AddVehicleType corsair -1 4 0
   ObjectTemplate.AddVehicleType sbd -1 4 0
   ObjectTemplate.AddVehicleType sbd-t -1 4 0
   ObjectTemplate.AddVehicleType mustang -1 4 0
   ObjectTemplate.AddVehicleType spitfire -1 4 0
   ObjectTemplate.AddVehicleType bf109 -1 4 0
   ObjectTemplate.AddVehicleType stuka -1 4 0
   ObjectTemplate.AddVehicleType aichival -1 4 0
   ObjectTemplate.AddVehicleType aichival-t -1 4 0
   ObjectTemplate.AddVehicleType zero -1 4 0
   ObjectTemplate.AddVehicleType yak9 -1 4 0
   ObjectTemplate.AddVehicleType Sturmgeschutz -1 4 0
   ObjectTemplate.AddVehicleType M3GMC -1 4 0
   ObjectTemplate.AddVehicleType M3Grant -1 4 0
   ObjectTemplate.AddVehicleType m11-39 -1 4 0
   ObjectTemplate.AddVehicleType BF110 -1 4 0
   ObjectTemplate.AddVehicleType Mosquito -1 4 0
   ObjectTemplate.AddVehicleType BlackMedal -1 4 0
   ObjectTemplate.AddVehicleType Ho-Ha -1 4 0
   ObjectTemplate.AddVehicleType Lynx -1 4 0
   ObjectTemplate.AddVehicleType Sexton -1 4 0
   ObjectTemplate.AddVehicleType KettenKrad -1 4 0
   ObjectTemplate.AddAmmoType 0 -1 10 0
   ObjectTemplate.WorkOnVehicles 1
   ObjectTemplate.WorkOnSoldiers 0


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