Object Detection
41 scripting commands. Also as Markdown for agents.
- agentsReturn a list of agents in the current mission.
- allCuratorsReturns list of all curator logic units, not the units assigned to the logic.
- allDeadReturn a list of all dead units including agents and destroyed vehicles. Dead units may be in vehicles.
- allDeadMenReturn a list of dead units including agents. Dead unit might be inside vehicle.
- allGroupsReturn a list of all groups created on the following sides east, west, resistance/independent and civilian only. Does not contain groups of sideLogic.
- allMissionObjectsReturns all objects of the given type that are currently present in the mission. In some cases, the entities and allObjects commands are much faster…
- allObjectsReturns array of requested objects as fast as the engine allows it. The objects can be requested by object type and simulation kind.
- allPlayersReturns a list of all units controlled by connected clients. This includes: - Normal human players (including dead players) - Virtual Entities (see…
- allSimpleObjectsReturns array of all simple objects that belong to the listed class names. If the array of types is empty [], all simple objects are returned…
- allUnitsReturns a list of all units, except agents, dead units or units waiting for respawn, outside and inside vehicles that were created on the following…
- allUnitsUAVReturn a list of all UAV vehicles.
- allUsersReturns a list of player ids of all the users on an MP server.
- countEnemyCount how many units in the array are considered enemy to the given unit.
- countSideReturns how many units in the given array belong to given side.
- countTypeCount how many objects in the array are of given type. This command also works with parent classes like "Air", "Tank", and "Car". For a full class…
- cursorObjectReturns the object under cursor. This command is quite different from cursorTarget as it is more precise in determining the boundaries of the pointed…
- cursorTargetReturns the target pointed at by the player (usually with cross-hairs). The target has to be known to the player to some degree (knowsAbout > 0). If…
- entitiesReturns a list of all alive and dead entities of the given type or deriving from the given type. Units in vehicles are ignored with the primary…
- findNearestEnemyFinds the nearest enemy to the specified position. Returns a null object if the object's group does not know about any enemies. This command will…
- getCursorObjectParamsReturns object and named selections under cursor and distance to object's surface (to the point cursor points at).
- getUserInfoReturns extended information about given server user.
- ignoreTargetSets a target to be ignored by this Group. It will not appear in nearTargets and the group will not notice its presence. targetKnowledge can be used…
- nearEntitiesFinds entities inside a sphere with the given radius. If the alternative syntax is used, only entities of given types or subtypes are listed.…
- nearestBuildingFinds the nearest building to a given object or position. A "building" is defined as an object that is of class "House" and contains a path LOD.
- nearestMinesReturns a list of nearest mines of the given types to the given position or object, within the specified distance.
- nearestObjectReturns the nearest object of given type (or inherited classes) to given position within a sphere. Hardcoded radius is 50 meters.
- nearestObjectsReturns a list of nearest objects of the given types to the given position or object, within the specified distance.
- nearestTerrainObjectsReturns a list of nearest terrain objects of the given types to the given position or object, within the specified distance.
- nearObjectsFind objects (Units, Vehicles, Dead, Map Objects) in a sphere with given radius. The first object in the returned array is *not* necessarily the…
- nearObjectsReadyCheck whether all data are loaded to nearObjects will return in reasonable time.
- nearRoadsFind the road segments within the circle of given radius.
- nearSuppliesFind supplies (weapon holders, ammo crates, fuel feeds, other units) in the sphere with given radius.
- nearTargetsReturns a list of targets within the defined range. "Targets" are not restricted to enemy units.
- playableUnitsReturns a list of playable units in a multiplayer game (occupied by both AI or players), created on the following sides east/opfor, west/blufor,…
- switchableUnitsReturns a list of playable units available for switching to - Command is relative to the client on which it is executed and will only show playable…
- targetKnowledgeReturns unit's knowledge about target.
- targetsRetrieves list of given unit targets matching specified filter. If the filter is not specified, all targets are returned.
- targetsQueryReturns sorted array of targets, known to the enquirer (including own troops), where the accuracy coefficient reflects how close the result matches…
- unitsReturns an array with all the units in the group or unit's group, or all units belonging to a certain side.
- unitsBelowHeightReturns units in group/array below given Above Terrain Level (ATL) altitude.
- vehiclesReturns an array of all vehicles available to current client. This command returns both empty and crewed vehicles but not soldiers. It will also…