ObjectSpawner Type

The ObjectSpawner object type is created by ObjectTemplate.Create.

The ObjectSpawner type allows you to spawn objects or vehicles in a Battlefield map. Each ObjectSpawner object is then instantiated and placed in each level by Object.Create commands in the ObjectSpawns.con file. A spawner allows you to pick an object for team 1 (Axis) or 2 (Allies) depending on who has control over that spawn group. You can also have a spawn point generate vehicles for only one side (this is done in Battle of the Bulge for the windmill, for example; only the Allies get a tank).

Used in a total of 151 .con files: Objectivespawnertemplates.con, Objects.con, Objectspawntemplates.con, Smallwar.con

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

Example: (from Bf1942/Levels/Bocage/Conquest/ObjectSpawnTemplates.con)
   ObjectTemplate.Create ObjectSpawner lighttankspawner
   ObjectTemplate.SetObjectTemplate 2 sherman
   ObjectTemplate.SetObjectTemplate 1 panzeriv
   ObjectTemplate.MinSpawnDelay 40
   ObjectTemplate.MaxSpawnDelay 80
   ObjectTemplate.SpawnDelayAtStart 0
   ObjectTemplate.TimeToLive 45
   ObjectTemplate.Distance 40
   ObjectTemplate.DamageWhenLost 10

Properties used with this type of object:
   ObjectTemplate.Create
   ObjectTemplate.DamageWhenLost
   ObjectTemplate.Distance
   ObjectTemplate.Geometry
   ObjectTemplate.HasCollisionPhysics
   ObjectTemplate.HoldObject
   ObjectTemplate.MaxNrOfObjectSpawned
   ObjectTemplate.MaxSpawnDelay
   ObjectTemplate.MinSpawnDelay
   ObjectTemplate.NrOfObjectToSpawn
   ObjectTemplate.ObjectTemplate
   ObjectTemplate.Radius
   ObjectTemplate.SetObjectTemplate
   ObjectTemplate.SetSpawnDelay
   ObjectTemplate.SetTeam
   ObjectTemplate.SpawnDelay
   ObjectTemplate.SpawnDelayAtStart
   ObjectTemplate.SpawnOffset
   ObjectTemplate.Team
   ObjectTemplate.TeamOnVehicle
   ObjectTemplate.TimeToLive
   ObjectTemplate.UseButtonRadius


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