Usage:
ObjectTemplate.Team
number
Argument values:
argument 1: | range is 0 to 2; most commonly 1 |
Description: Which team owns a ControlPoint at the start of a battle, or which side an object is on. 0 = uncontrolled, 1 = Axis, 2 = Allies. It also affects whether an object can be used by one or both teams, e.g. ammo boxes are normally set to 0 but could be set to help only one team.
Used in object types (and how often in each type): ControlPoint (100%), Flag (100%), FlagBase (100%), ObjectSpawner (2%), SupplyDepot (91%)
Used in a total of 204 .con files: Controlpointtemplates.con, Ctf.con, Init.con, Objects.con, Singleplayerallied.con, Singleplayeraxis.con, Weapons.con
Parent directories of these .con files: objects/Vehicles, objects/MOVE_FILES, objects/Items, objects/Buildings, Bf1942/Levels
Example: (from Bf1942/Levels/Kbely_Airfield/Conquest/ControlPointTemplates.con)
ObjectTemplate.Create ControlPoint axis_base
ObjectTemplate.NetworkableInfo ControlPointInfo
ObjectTemplate.SetControlPointName XP2_KBELY_AIRFIELD
ObjectTemplate.Radius 20
ObjectTemplate.Team 1
ObjectTemplate.SpawnGroupId 1
ObjectTemplate.ObjectSpawnerId 1
ObjectTemplate.AreaValue 25
ObjectTemplate.TimeToGetControl 10
ObjectTemplate.TimeToLoseControl 10
ObjectTemplate.DisableIfEnemyInsideRadius 0
ObjectTemplate.DisableWhenLosingControl 0
ObjectTemplate.LoseControlWhenEnemyClose 1
ObjectTemplate.LoseControlWhenNotClose 0
ObjectTemplate.Geometry flagbase_m1
ObjectTemplate.HasCollisionPhysics 1
ObjectTemplate.AddTemplate AnimatedFlag
ObjectTemplate.SetPosition 0/8.2/0
ObjectTemplate.SetTeamGeometry 1 flagge_m1
ObjectTemplate.SetTeamGeometry 2 flaguk_m1
Go to the ObjectTemplate properties list page, ObjectTemplate page, All Properties list, or Main scripting page.