SupplyDepot Type

The SupplyDepot object type is created by ObjectTemplate.Create.

This is the object used to heal, repair, and resupply players and vehicles. It can be set specifically for ammunition, repairing, and healing for each vehicle and ammuntion type.

Used in a total of 34 .con files: Objects.con, Weapons.con

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

Example: (from objects/Buildings/Common/AlliedAirplaneAmmo/Objects.con)
   ObjectTemplate.Create SupplyDepot AlliedAirplaneSupplyDepot
   ObjectTemplate.Radius 20
   ObjectTemplate.Team 2
   ObjectTemplate.SetHealth 0 0 0
   ObjectTemplate.AddAmmoType 10 -1 100 0
   ObjectTemplate.AddAmmoType 9 -1 4 0
   ObjectTemplate.AddAmmoType 8 -1 100 0
   ObjectTemplate.AddAmmoType 7 -1 4 0
   ObjectTemplate.WorkOnVehicles 1
   ObjectTemplate.WorkOnSoldiers 0
   ObjectTemplate.LoadSoundScript ../../../Common/Sounds/SupplyDepot.ssc

Properties used with this type of object:
   ObjectTemplate.AddAmmoType
   ObjectTemplate.AddVehicleType
   ObjectTemplate.Create
   ObjectTemplate.LoadSoundScript
   ObjectTemplate.Radius
   ObjectTemplate.SetHealth
   ObjectTemplate.Team
   ObjectTemplate.WorkOnSoldiers
   ObjectTemplate.WorkOnVehicles


Go to the ObjectTemplate type list page, ObjectTemplate page, All Types list, Class list, CON file list, or Main scripting page.