BF2.US bf2-rsdeveloper wiki Parity Discord bf2.us
generated from the code

aiStrategy

BF22142

43 commands. A game cell holds the argument types (and the return type after ->) that game registers; empty: the game does not have the command. Back to the console reference.

Scope badges
serveronly the server reads it: a mod on the server alone takes effect, players need nothingclientonly the game client reads it (drawing, sound, HUD): every player who should see it needs the modsharedthe server and every client read it: both need the same files, or the clients' view jumpsyesthe game has it; nobody has classified its scope yet
BF22142HeroesA game column holds that game's badge and the argument types its program registers; an empty cell means the game does not know the name. The Notes column gives the reason (how the scopes are worked out).
NameBF22142HeroesNotes
aiStrategy.addConditionserver std::string, floatserver std::string, floatmethod; BF2: only the dedicated server registers it; BF2, 2142: bf2-rs runs it in bf2-ai on the server (bf2-runtime owners.rs: the AI's)
aiStrategy.addProhibitedPrecedingStrategyserver std::string -> boolserver std::string -> boolmethod; BF2: only the dedicated server registers it; BF2, 2142: bf2-rs runs it in bf2-ai on the server (bf2-runtime owners.rs: the AI's)
aiStrategy.addRequiredPrecedingStrategyserver std::string -> boolserver std::string -> boolmethod; BF2: only the dedicated server registers it; BF2, 2142: bf2-rs runs it in bf2-ai on the server (bf2-runtime owners.rs: the AI's)
aiStrategy.addSpecificObjectModifierserver std::string, float -> boolserver std::string, float -> boolmethod; BF2: only the dedicated server registers it; BF2, 2142: bf2-rs runs it in bf2-ai on the server (bf2-runtime owners.rs: the AI's)
aiStrategy.aggressionserver float -> floatserver float -> floatproperty; BF2: only the dedicated server registers it; BF2, 2142: bf2-rs runs it in bf2-ai on the server (bf2-runtime owners.rs: the AI's)
aiStrategy.clearAllStrategicObjectsModifiersserverservermethod; BF2: only the dedicated server registers it; BF2, 2142: bf2-rs runs it in bf2-ai on the server (bf2-runtime owners.rs: the AI's)
aiStrategy.completeConditionsserverservermethod; BF2: only the dedicated server registers it; BF2, 2142: bf2-rs runs it in bf2-ai on the server (bf2-runtime owners.rs: the AI's)
aiStrategy.completeStrategiesserverservermethod; BF2: only the dedicated server registers it; BF2, 2142: bf2-rs runs it in bf2-ai on the server (bf2-runtime owners.rs: the AI's)
aiStrategy.createAreaConditionserver std::string, std::string, StatusMap::Status -> boolserver std::string, std::string, StatusMap::Status -> boolmethod; BF2: only the dedicated server registers it; BF2, 2142: bf2-rs runs it in bf2-ai on the server (bf2-runtime owners.rs: the AI's)
aiStrategy.createConstantConditionserver std::string, StrategyCondition::CompareType, StrategyCondition::Compare, StrategyCondition::ConditionSide, StrategyCondition::Conditional, float -> boolserver std::string, StrategyCondition::CompareType, StrategyCondition::Compare, StrategyCondition::ConditionSide, StrategyCondition::Conditional, float -> boolmethod; BF2: only the dedicated server registers it; BF2, 2142: bf2-rs runs it in bf2-ai on the server (bf2-runtime owners.rs: the AI's)
aiStrategy.createHeterogeneousConditionserver std::string, StrategyCondition::CompareType, StrategyCondition::Compare, StrategyCondition::ConditionSide, StrategyCondition::Conditional, StrategyCondition::Conditional -> boolserver std::string, StrategyCondition::CompareType, StrategyCondition::Compare, StrategyCondition::ConditionSide, StrategyCondition::Conditional, StrategyCondition::Conditional -> boolmethod; BF2: only the dedicated server registers it; BF2, 2142: bf2-rs runs it in bf2-ai on the server (bf2-runtime owners.rs: the AI's)
aiStrategy.createHomogenousConditionserver std::string, StrategyCondition::CompareType, StrategyCondition::Compare, StrategyCondition::Conditional -> boolserver std::string, StrategyCondition::CompareType, StrategyCondition::Compare, StrategyCondition::Conditional -> boolmethod; BF2: only the dedicated server registers it; BF2, 2142: bf2-rs runs it in bf2-ai on the server (bf2-runtime owners.rs: the AI's)
aiStrategy.createPrerequisiteserver std::stringserver std::stringmethod; BF2: only the dedicated server registers it; BF2, 2142: bf2-rs runs it in bf2-ai on the server (bf2-runtime owners.rs: the AI's)
aiStrategy.createStrategyserver std::stringserver std::stringmethod; BF2: only the dedicated server registers it; BF2, 2142: bf2-rs runs it in bf2-ai on the server (bf2-runtime owners.rs: the AI's)
aiStrategy.enableDebugserver bool -> boolserver bool -> boolproperty; BF2: only the dedicated server registers it; BF2, 2142: bf2-rs runs it in bf2-ai on the server (bf2-runtime owners.rs: the AI's)
aiStrategy.forceStrategyserver std::string, int -> std::stringserver std::string, int -> std::stringmethod; BF2: only the dedicated server registers it; BF2, 2142: bf2-rs runs it in bf2-ai on the server (bf2-runtime owners.rs: the AI's)
aiStrategy.getActiveConditionNameserver -> std::stringserver -> std::stringmethod; BF2: only the dedicated server registers it; BF2, 2142: bf2-rs runs it in bf2-ai on the server (bf2-runtime owners.rs: the AI's)
aiStrategy.getActivePrerequisiteNameserver -> std::stringserver -> std::stringmethod; BF2: only the dedicated server registers it; BF2, 2142: bf2-rs runs it in bf2-ai on the server (bf2-runtime owners.rs: the AI's)
aiStrategy.getActiveStrategyNameserver -> std::stringserver -> std::stringmethod; BF2: only the dedicated server registers it; BF2, 2142: bf2-rs runs it in bf2-ai on the server (bf2-runtime owners.rs: the AI's)
aiStrategy.getConditionStrengthserver -> StrategyCondition::ConditionStrengthserver -> StrategyCondition::ConditionStrengthmethod; BF2: only the dedicated server registers it; BF2, 2142: bf2-rs runs it in bf2-ai on the server (bf2-runtime owners.rs: the AI's)
aiStrategy.getPrerequisiteWeightserver -> floatserver -> floatmethod; BF2: only the dedicated server registers it; BF2, 2142: bf2-rs runs it in bf2-ai on the server (bf2-runtime owners.rs: the AI's)
aiStrategy.getStrategicObjectsModifierserver AIStrategicObject::StrategicObjectType, StatusMap::Status -> floatserver AIStrategicObject::StrategicObjectType, StatusMap::Status -> floatmethod; BF2: only the dedicated server registers it; BF2, 2142: bf2-rs runs it in bf2-ai on the server (bf2-runtime owners.rs: the AI's)
aiStrategy.getTreeModifierserver TemperatureTreeNode -> floatserver TemperatureTreeNode -> floatmethod; BF2: only the dedicated server registers it; BF2, 2142: bf2-rs runs it in bf2-ai on the server (bf2-runtime owners.rs: the AI's)
aiStrategy.getTreeModifierCombatStrengthserver TemperatureTreeNode, CombatStrengthType -> floatserver TemperatureTreeNode, CombatStrengthType -> floatmethod; BF2: only the dedicated server registers it; BF2, 2142: bf2-rs runs it in bf2-ai on the server (bf2-runtime owners.rs: the AI's)
aiStrategy.isAbortConditionserver -> boolserver -> boolmethod; BF2: only the dedicated server registers it; BF2, 2142: bf2-rs runs it in bf2-ai on the server (bf2-runtime owners.rs: the AI's)
aiStrategy.listConditionsserver -> std::stringserver -> std::stringmethod; BF2: only the dedicated server registers it; BF2, 2142: bf2-rs runs it in bf2-ai on the server (bf2-runtime owners.rs: the AI's)
aiStrategy.listPrerequisitesserver -> std::stringserver -> std::stringmethod; BF2: only the dedicated server registers it; BF2, 2142: bf2-rs runs it in bf2-ai on the server (bf2-runtime owners.rs: the AI's)
aiStrategy.listStrategiesserver -> std::stringserver -> std::stringmethod; BF2: only the dedicated server registers it; BF2, 2142: bf2-rs runs it in bf2-ai on the server (bf2-runtime owners.rs: the AI's)
aiStrategy.numberOfAttacksserver int -> intserver int -> intproperty; BF2: only the dedicated server registers it; BF2, 2142: bf2-rs runs it in bf2-ai on the server (bf2-runtime owners.rs: the AI's)
aiStrategy.numberOfDefencesserver int -> intserver int -> intproperty; BF2: only the dedicated server registers it; BF2, 2142: bf2-rs runs it in bf2-ai on the server (bf2-runtime owners.rs: the AI's)
aiStrategy.setActiveConditionserver std::stringserver std::stringmethod; BF2: only the dedicated server registers it; BF2, 2142: bf2-rs runs it in bf2-ai on the server (bf2-runtime owners.rs: the AI's)
aiStrategy.setActivePrerequisiteserver std::stringserver std::stringmethod; BF2: only the dedicated server registers it; BF2, 2142: bf2-rs runs it in bf2-ai on the server (bf2-runtime owners.rs: the AI's)
aiStrategy.setActiveStrategyserver std::stringserver std::stringmethod; BF2: only the dedicated server registers it; BF2, 2142: bf2-rs runs it in bf2-ai on the server (bf2-runtime owners.rs: the AI's)
aiStrategy.setConditionStrengthserver StrategyCondition::ConditionStrengthserver StrategyCondition::ConditionStrengthmethod; BF2: only the dedicated server registers it; BF2, 2142: bf2-rs runs it in bf2-ai on the server (bf2-runtime owners.rs: the AI's)
aiStrategy.setIsAbortConditionserver boolserver boolmethod; BF2: only the dedicated server registers it; BF2, 2142: bf2-rs runs it in bf2-ai on the server (bf2-runtime owners.rs: the AI's)
aiStrategy.setPrerequisiteserver std::stringserver std::stringmethod; BF2: only the dedicated server registers it; BF2, 2142: bf2-rs runs it in bf2-ai on the server (bf2-runtime owners.rs: the AI's)
aiStrategy.setPrerequisiteWeightserver floatserver floatmethod; BF2: only the dedicated server registers it; BF2, 2142: bf2-rs runs it in bf2-ai on the server (bf2-runtime owners.rs: the AI's)
aiStrategy.setStrategicObjectsModifierserver AIStrategicObject::StrategicObjectType, float, StatusMap::Statusserver AIStrategicObject::StrategicObjectType, float, StatusMap::Statusmethod; BF2: only the dedicated server registers it; BF2, 2142: bf2-rs runs it in bf2-ai on the server (bf2-runtime owners.rs: the AI's)
aiStrategy.setTreeModifierserver TemperatureTreeNode, float -> floatserver TemperatureTreeNode, float -> floatmethod; BF2: only the dedicated server registers it; BF2, 2142: bf2-rs runs it in bf2-ai on the server (bf2-runtime owners.rs: the AI's)
aiStrategy.setTreeModifierCombatStrengthserver TemperatureTreeNode, CombatStrengthType, float -> floatserver TemperatureTreeNode, CombatStrengthType, float -> floatmethod; BF2: only the dedicated server registers it; BF2, 2142: bf2-rs runs it in bf2-ai on the server (bf2-runtime owners.rs: the AI's)
aiStrategy.targetValueserver float -> floatserver float -> floatproperty; BF2: only the dedicated server registers it; BF2, 2142: bf2-rs runs it in bf2-ai on the server (bf2-runtime owners.rs: the AI's)
aiStrategy.thresholdSpeedserver float -> floatserver float -> floatproperty; BF2: only the dedicated server registers it; BF2, 2142: bf2-rs runs it in bf2-ai on the server (bf2-runtime owners.rs: the AI's)
aiStrategy.timeLimitserver float -> floatserver float -> floatproperty; BF2: only the dedicated server registers it; BF2, 2142: bf2-rs runs it in bf2-ai on the server (bf2-runtime owners.rs: the AI's)
Source: tools/devwiki/refs_console.py · built from bf2-rs e3b4f05 · part of the Battlefield 2 / 2142 / Heroes reimplementation. Not affiliated with EA or DICE.