SetObjectTemplate Property

Usage:
   ObjectTemplate.SetObjectTemplate number name

Argument values:

argument 1:    range is 1 to 2; most commonly 1
argument 2:    AA_allies, AT25, AichiVal, B17, BF109, BM21sam, BlackMedal, Britain_Factory, Britain_Factory_AI, C47, CDNRaft, Chinook, Clacton_RadarTower, Cobra, Composite, Corsair, DaiHatsu, Daihatsu, Defgun, DestroyFactory01, ...

Description: This property sets which PlayerControlObject to use based on what team has control over the ObjectSpawner. It is also used for setting up plane and landing craft spawn points on ships.

Note that a spawn can be defined for only one team, so that a control point spawns vehicles only when one side owns it. An example of this is at the Battle of the Bulge level, where the Allies spawn a tank at the windmill but the Axis spawn nothing. If the second argument is not present, then nothing spawns for that team.

Related properties: Distance, SpawnDelayAtStart

Used in object types (always present 100% of the time): ObjectSpawner

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

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

Example: (from Bf1942/Levels/Essen/singleplayer/ObjectSpawnTemplates.con)
   ObjectTemplate.Create ObjectSpawner FighterSpawner
   ObjectTemplate.SetObjectTemplate 2 spitfire
   ObjectTemplate.SetObjectTemplate 1 bf109
   ObjectTemplate.SpawnDelay 10
   ObjectTemplate.SpawnDelayAtStart 0
   ObjectTemplate.TimeToLive 120
   ObjectTemplate.Distance 200


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