SetDefender Property

Usage:
   ObjectiveManager.SetDefender number

Argument values:

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

Description: For Objective Mode battles, sets which side is the defender (1 = Axis, 2 = Allies).

This property is not a part of any defined type of object.

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

Parent directory of these .con files: Bf1942/Levels

Example: (from Bf1942/Levels/Battle_of_Britain/ObjectiveMode/ObjectiveCommon.con)
   rem =========== Objective Manager Stuff===============================
   ObjectiveManager.SetDefender 2
   ObjectiveManager.RegisterObjectSpawner ObjectiveSpawner01
   ObjectiveManager.RegisterObjectSpawner ObjectiveSpawner02
   ObjectiveManager.RegisterObjectSpawner ObjectiveSpawner03
   ObjectiveManager.RegisterObjectSpawner ObjectiveSpawner04
   ObjectiveManager.RegisterObjectSpawner ObjectiveSpawner05
   ObjectiveManager.RegisterObjectSpawner AXIS
   ObjectiveManager.RegisterObjectSpawner ALLIED
   ObjectiveManager.SetRootObjectSpawner 2 ALLIED
   ObjectiveManager.SetRootObjectSpawner 1 AXIS


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