Usage:
AiStrategy.CreateConstantCondition
string string string string string number
Argument values:
argument 1: | advMaxOneOwnSouthCond, advMaxTwoOwnEastCond, advMaxTwoOwnWestCond, airPlaneCond, allCPCond, allFriendlyCPCond, alwaysCond, atSecondLineCPs, baseCloseCond, baseCond, baseOpenCond, bridgeCond, broadCond, ... |
argument 2: | Crisp, Fuzzy; most commonly Crisp |
argument 3: | Equal, EqualGreater, EqualSmaller; most commonly Equal |
argument 4: | Enemy, Friendly; most commonly Friendly |
argument 5: | Air, Base, Bridge, Centre, Close, ControlPoint, East, Flank, Front, FrontBase, FrontCentre, FrontClose, FrontFlank, North, NumberOfFriendlyAreas, NumberOfHostileAreas, Remote, Route, South, StartTime, ... |
argument 6: | range is 0 to 360; most commonly 1 |
This property is not a part of any defined type of object.
Used in a total of 33 .con files: Conditions.con
Parent directories of these .con files: Bf1942/Levels, Bf1942/Game
Example: (from Bf1942/Levels/Gazala/ai/conditions.con)
if v_arg1 == host
rem ----- Host
rem ----------------------------------------------------------------------------
rem *** Create Conditions ***
rem *** Operation Gazala ***
rem ** common **
AiStrategy.CreateConstantCondition timeCond Fuzzy EqualSmaller Friendly StartTime 200
AiStrategy.SetConditionStrength AdvisoryNegative
AiStrategy.SetIsAbortCondition 1
rem ** north **
AiStrategy.CreateConstantCondition northCond Crisp Equal Friendly North 0
AiStrategy.SetConditionStrength Required
rem ** south **
AiStrategy.CreateConstantCondition southCond Crisp EqualSmaller Friendly South 2
AiStrategy.SetConditionStrength Required
rem ** both **
AiStrategy.CreateConstantCondition minTwoEnemyFrontCond Crisp EqualGreater Enemy Front 2
AiStrategy.SetConditionStrength Required
rem ** behind **
AiStrategy.CreateConstantCondition noRemoteCond Crisp Equal Friendly Remote 0
AiStrategy.SetConditionStrength Required
rem ** finalPush **
AiStrategy.CreateConstantCondition noEnemyCPCond Crisp Equal Enemy ControlPoint 0
AiStrategy.SetConditionStrength Required
AiStrategy.CreateConstantCondition fourFriendlyCPCond Crisp EqualGreater Friendly ControlPoint 4
AiStrategy.SetConditionStrength Required
rem ** breakOut **
AiStrategy.CreateConstantCondition noFriendlyCPCond Crisp Equal Friendly ControlPoint 0
AiStrategy.SetConditionStrength Required
Go to the AiStrategy properties list page, AiStrategy page, All Properties list, or Main scripting page.