Usage:
AiStrategy.SetStrategicObjectsModifier
string number name
Argument values:
argument 1: | AirField, AirSpawner, Base, Bridge, Centre, ChokePoint, Close, ControlPoint, East, Flank, Front, LandSpawner, Neutral, North, Remote, Route, Safe, SoldierSpawner, South, StrongPoint, West |
argument 2: | range is 0.05 to 50.0; most commonly 2.0 |
argument 3: | [optional] Hostile, Neutral, Owned; most commonly Owned |
This property is not a part of any defined type of object.
Used in a total of 32 .con files: Strategies.con
Parent directories of these .con files: Bf1942/Levels, Bf1942/Game
Example: (from Bf1942/Levels/Kbely_Airfield/ai/Strategies.con)
if v_arg1 == host
rem *** Create Strategies ***
rem *** KBely_Airfield ***
rem ** American **
AiStrategy.CreateStrategy endGameDefence
AiStrategy.Aggression 0
AiStrategy.NumberOfAttacks 0
AiStrategy.NumberOfDefences 4
AiStrategy.SetPrerequisite endGameDefencePrereq
AiStrategy.SetStrategicObjectsModifier ControlPoint 3.0
AiStrategy.CreateStrategy alliedRepulse
AiStrategy.Aggression 1
AiStrategy.NumberOfAttacks 1
AiStrategy.NumberOfDefences 0
AiStrategy.SetPrerequisite alliedRepulsePrereq
AiStrategy.SetStrategicObjectsModifier Front 3.0
AiStrategy.SetStrategicObjectsModifier Neutral 1.25
rem ** German **
AiStrategy.CreateStrategy beachDefence
AiStrategy.Aggression 0
AiStrategy.NumberOfAttacks 0
AiStrategy.NumberOfDefences 1
AiStrategy.SetPrerequisite beachDefencePrereq
AiStrategy.SetStrategicObjectsModifier Front 3.0
AiStrategy.CreateStrategy axisRepulse
AiStrategy.Aggression 1
AiStrategy.NumberOfAttacks 1
AiStrategy.NumberOfDefences 0
AiStrategy.SetPrerequisite axisRepulsePrereq
AiStrategy.SetStrategicObjectsModifier Front 3.0
Go to the AiStrategy properties list page, AiStrategy page, All Properties list, or Main scripting page.