SetTeam Property

Usage:
   ObjectTemplate.SetTeam number

Argument values:

argument 1:    range is 1 to 2; most commonly 1

Description: For a spawning object, sets the team the object spawns for. 1 is Axis, 2 is Allies.

Used in object types (and how often in each type): ANDCompositeObjective (100%), DestroyTargetObjective (100%), ObjectSpawner (2%), TimerObjective (100%)

Used in a total of 7 .con files: Objectivespawnertemplates.con

Parent directory of these .con files: Bf1942/Levels

Example: (from Bf1942/Levels/Hellendoorn/ObjectiveMode/ObjectiveSpawnerTemplates.con)
   rem ================ ObjectiveTemplates =====================
   rem // Axis = 1 , Allied = 2
   ObjectTemplate.Create DestroyTargetObjective DestroyTurbine01
   ObjectTemplate.SetNetworkableInfo ObjectiveInfo
   ObjectTemplate.SetTargetName Turbine01
   ObjectTemplate.ObjectiveName V2_ROCKET1
   ObjectTemplate.SetObjectiveDelay 1.0
   ObjectTemplate.SetTeam 2


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