generated from the code
aI
BF22142
68 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).
| Name | BF2 | 2142 | Heroes | Notes |
|---|---|---|---|---|
aI.addBot | server std::string, int, std::string, std::string -> int | server std::string, int, std::string, std::string -> int | method; 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) | |
aI.addPlacement | server std::string, hfe::Vec3, hfe::Vec3, std::string, int, std::string -> bool | server std::string, hfe::Vec3, hfe::Vec3, std::string, int, std::string -> bool | method; 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) | |
aI.addSAIStrategy | server int, std::string | server int, std::string | method; 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) | |
aI.addUnspawnedBot | server std::string, int, std::string -> int | server std::string, int, std::string -> int | method; 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) | |
aI.aiSystemQuotient | server double -> double | server double -> double | property; 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) | |
aI.botFlyTo | server int, float, float, float, hfe::Vec3 | server int, float, float, float, hfe::Vec3 | method; 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) | |
aI.botGiveOrder | server int, std::string, std::string | server int, std::string, std::string | method; 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) | |
aI.botMoveTo | server float, hfe::Vec3, int | server float, hfe::Vec3, int | method; 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) | |
aI.botSetWaypoints_Patrol | server int, float, int, hfe::Vec3, hfe::Vec3, hfe::Vec3 | server int, float, int, hfe::Vec3, hfe::Vec3, hfe::Vec3 | method; 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) | |
aI.botSetWaypoints_Patrol3d | server int, float, int, hfe::Vec3, hfe::Vec3, hfe::Vec3 | server int, float, int, hfe::Vec3, hfe::Vec3, hfe::Vec3 | method; 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) | |
aI.botStatisticUpdateSpeed | server double -> double | server double -> double | property; 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) | |
aI.createHeightMap | server int | server int | method; 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) | |
aI.createSAI | server | server | method; 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) | |
aI.deactivateBot | server int -> bool | server int -> bool | method; 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) | |
aI.debug | server | server | method; 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) | |
aI.drawAddAllBots | server | method; 2142: bf2-rs runs it in bf2-ai on the server (bf2-runtime owners.rs: the AI's) | ||
aI.drawAddBot | server std::string | method; 2142: bf2-rs runs it in bf2-ai on the server (bf2-runtime owners.rs: the AI's) | ||
aI.drawAddClosestBot | server | method; 2142: bf2-rs runs it in bf2-ai on the server (bf2-runtime owners.rs: the AI's) | ||
aI.drawAddClosestSecondaryBot | server | method; 2142: bf2-rs runs it in bf2-ai on the server (bf2-runtime owners.rs: the AI's) | ||
aI.drawAiming | server bool -> bool | property; 2142: bf2-rs runs it in bf2-ai on the server (bf2-runtime owners.rs: the AI's) | ||
aI.drawBotPlan | server bool -> bool | property; 2142: bf2-rs runs it in bf2-ai on the server (bf2-runtime owners.rs: the AI's) | ||
aI.drawChangeUrgency | server bool -> bool | property; 2142: bf2-rs runs it in bf2-ai on the server (bf2-runtime owners.rs: the AI's) | ||
aI.drawMovement | server bool -> bool | property; 2142: bf2-rs runs it in bf2-ai on the server (bf2-runtime owners.rs: the AI's) | ||
aI.drawOnlyClosestBot | server | method; 2142: bf2-rs runs it in bf2-ai on the server (bf2-runtime owners.rs: the AI's) | ||
aI.drawPathfinding | server bool -> bool | property; 2142: bf2-rs runs it in bf2-ai on the server (bf2-runtime owners.rs: the AI's) | ||
aI.drawRemoveAllBots | server | method; 2142: bf2-rs runs it in bf2-ai on the server (bf2-runtime owners.rs: the AI's) | ||
aI.drawRemoveBot | server std::string | method; 2142: bf2-rs runs it in bf2-ai on the server (bf2-runtime owners.rs: the AI's) | ||
aI.drawStrategicAreas | server bool -> bool | property; 2142: bf2-rs runs it in bf2-ai on the server (bf2-runtime owners.rs: the AI's) | ||
aI.executePlan | server bool -> bool | property; 2142: bf2-rs runs it in bf2-ai on the server (bf2-runtime owners.rs: the AI's) | ||
aI.getBotCount | server -> hfe::uint | server -> hfe::uint | method; 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) | |
aI.getBotManagerQuotient | server -> double | server -> double | method; 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) | |
aI.getCurrentPitchAngle | server -> float | server -> float | method; 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) | |
aI.getCurrentYawAngle | server -> float | server -> float | method; 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) | |
aI.getNumberOfActiveBots | server -> hfe::uint | server -> hfe::uint | method; 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) | |
aI.getNumberOfDeactivedBots | server -> hfe::uint | server -> hfe::uint | method; 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) | |
aI.getRendCameraPosition | server -> hfe::Vec3 | server -> hfe::Vec3 | method; 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) | |
aI.getRendCameraRotation | server -> hfe::Vec3 | server -> hfe::Vec3 | method; 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) | |
aI.getSAIQuotient | server -> double | server -> double | method; 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) | |
aI.init | server int | server int | method; 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) | |
aI.killAllBots | server | method; BF2: only the dedicated server registers it; BF2: bf2-rs runs it in bf2-ai on the server (bf2-runtime owners.rs: the AI's) | ||
aI.killBotId | server int -> std::string | method; BF2: only the dedicated server registers it; BF2: bf2-rs runs it in bf2-ai on the server (bf2-runtime owners.rs: the AI's) | ||
aI.killBotName | server std::string -> std::string | method; BF2: only the dedicated server registers it; BF2: bf2-rs runs it in bf2-ai on the server (bf2-runtime owners.rs: the AI's) | ||
aI.pause | server bool -> bool | server bool -> bool | property; 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) | |
aI.pauseAllBots | server | method; 2142: bf2-rs runs it in bf2-ai on the server (bf2-runtime owners.rs: the AI's) | ||
aI.pauseAllButClosestPrimaryBot | server | method; 2142: bf2-rs runs it in bf2-ai on the server (bf2-runtime owners.rs: the AI's) | ||
aI.pauseAllButClosestSecondaryBot | server | method; 2142: bf2-rs runs it in bf2-ai on the server (bf2-runtime owners.rs: the AI's) | ||
aI.pauseBot | server std::string, bool | method; 2142: bf2-rs runs it in bf2-ai on the server (bf2-runtime owners.rs: the AI's) | ||
aI.readHeightMapFromFile | server | server | method; 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) | |
aI.renderSide | server int -> int | property; BF2: only the dedicated server registers it; BF2: bf2-rs runs it in bf2-ai on the server (bf2-runtime owners.rs: the AI's) | ||
aI.saiEnable | server bool -> bool | server bool -> bool | property; 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) | |
aI.saiMapXDimension | server int -> int | server int -> int | property; 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) | |
aI.saiMapYDimension | server int -> int | server int -> int | property; 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) | |
aI.setAISystemComponentsQuotient | server hfe::uint, hfe::uint | server hfe::uint, hfe::uint | method; 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) | |
aI.showAll | server bool | server bool | method; 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) | |
aI.showBot | server bool | method; BF2: only the dedicated server registers it; BF2: bf2-rs runs it in bf2-ai on the server (bf2-runtime owners.rs: the AI's) | ||
aI.showBotSense | server bool -> bool | property; BF2: only the dedicated server registers it; BF2: bf2-rs runs it in bf2-ai on the server (bf2-runtime owners.rs: the AI's) | ||
aI.showBotSpawnCoord | server bool -> bool | property; BF2: only the dedicated server registers it; BF2: bf2-rs runs it in bf2-ai on the server (bf2-runtime owners.rs: the AI's) | ||
aI.showBotStats | server bool -> bool | property; BF2: only the dedicated server registers it; BF2: bf2-rs runs it in bf2-ai on the server (bf2-runtime owners.rs: the AI's) | ||
aI.showBotUrgencies | server bool -> bool | property; BF2: only the dedicated server registers it; BF2: bf2-rs runs it in bf2-ai on the server (bf2-runtime owners.rs: the AI's) | ||
aI.showSAIStats | server bool -> bool | property; BF2: only the dedicated server registers it; BF2: bf2-rs runs it in bf2-ai on the server (bf2-runtime owners.rs: the AI's) | ||
aI.showStrategic | server bool | method; BF2: only the dedicated server registers it; BF2: bf2-rs runs it in bf2-ai on the server (bf2-runtime owners.rs: the AI's) | ||
aI.showStrategicAreas | server bool -> bool | property; BF2: only the dedicated server registers it; BF2: bf2-rs runs it in bf2-ai on the server (bf2-runtime owners.rs: the AI's) | ||
aI.showStrategies | server bool -> bool | property; BF2: only the dedicated server registers it; BF2: bf2-rs runs it in bf2-ai on the server (bf2-runtime owners.rs: the AI's) | ||
aI.spawnBot | server int -> bool | server int -> bool | method; 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) | |
aI.unpauseAllBots | server | method; 2142: bf2-rs runs it in bf2-ai on the server (bf2-runtime owners.rs: the AI's) | ||
aI.updateBot | server int | server int | method; 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) | |
aI.validateDataStructuresEnabled | server bool -> bool | server bool -> bool | property; 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) | |
aI.writeBotPlans | server | server | method; 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.