# Object Detection (scripting commands)

- [agents](../../commands/agents.md): Return a list of agents in the current mission.
- [allCurators](../../commands/allCurators.md): Returns list of all curator logic units, not the units assigned to the logic.
- [allDead](../../commands/allDead.md): Return a list of all dead units including agents and destroyed vehicles. Dead units may be in vehicles.
- [allDeadMen](../../commands/allDeadMen.md): Return a list of dead units including agents. Dead unit might be inside vehicle.
- [allGroups](../../commands/allGroups.md): Return a list of all groups created on the following sides east, west, resistance/independent and civilian only. Does not contain groups of sideLogic.
- [allMissionObjects](../../commands/allMissionObjects.md): Returns all objects of the given type that are currently present in the mission. In some cases, the entities and allObjects commands are much faster alternatives to this command.
- [allObjects](../../commands/allObjects.md): Returns array of requested objects as fast as the engine allows it. The objects can be requested by object type and simulation kind.
- [allPlayers](../../commands/allPlayers.md): Returns a list of all units controlled by connected clients. This includes: - Normal human players (including dead players) - Virtual Entities (see *Systems* → *Logic Entities* → *Virtual Entities* in the Eden Editor) -…
- [allSimpleObjects](../../commands/allSimpleObjects.md): Returns array of all simple objects that belong to the listed class names. If the array of types is empty [], all simple objects are returned including those without class name.
- [allUnits](../../commands/allUnits.md): Returns a list of all units, except agents, dead units or units waiting for respawn, outside and inside vehicles that were created on the following sides east, west, independent and civilian.
- [allUnitsUAV](../../commands/allUnitsUAV.md): Return a list of all UAV vehicles.
- [allUsers](../../commands/allUsers.md): Returns a list of player ids of all the users on an MP server.
- [countEnemy](../../commands/countEnemy.md): Count how many units in the array are considered enemy to the given unit.
- [countSide](../../commands/countSide.md): Returns how many units in the given array belong to given side.
- [countType](../../commands/countType.md): Count 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 reference see Classes.
- [cursorObject](../../commands/cursorObject.md): Returns the object under cursor. This command is quite different from cursorTarget as it is more precise in determining the boundaries of the pointed at object and can detect a larger variety of objects including map…
- [cursorTarget](../../commands/cursorTarget.md): Returns 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 target is completely unknown, command returns objNull.
- [entities](../../commands/entities.md): Returns 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 syntax.
- [findNearestEnemy](../../commands/findNearestEnemy.md): Finds 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 return nearest object that is known to the unit and is considered enemy.
- [getCursorObjectParams](../../commands/getCursorObjectParams.md): Returns object and named selections under cursor and distance to object's surface (to the point cursor points at).
- [getUserInfo](../../commands/getUserInfo.md): Returns extended information about given server user.
- [ignoreTarget](../../commands/ignoreTarget.md): Sets 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 to check if a target is currently ignored.
- [nearEntities](../../commands/nearEntities.md): Finds entities inside a sphere with the given radius. If the alternative syntax is used, only entities of given types or subtypes are listed. Entities returned are not sorted by distance.
- [nearestBuilding](../../commands/nearestBuilding.md): Finds 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.
- [nearestMines](../../commands/nearestMines.md): Returns a list of nearest mines of the given types to the given position or object, within the specified distance.
- [nearestObject](../../commands/nearestObject.md): Returns the nearest object of given type (or inherited classes) to given position within a sphere. Hardcoded radius is 50 meters.
- [nearestObjects](../../commands/nearestObjects.md): Returns a list of nearest objects of the given types to the given position or object, within the specified distance.
- [nearestTerrainObjects](../../commands/nearestTerrainObjects.md): Returns a list of nearest terrain objects of the given types to the given position or object, within the specified distance.
- [nearObjects](../../commands/nearObjects.md): Find objects (Units, Vehicles, Dead, Map Objects) in a sphere with given radius. The first object in the returned array is *not* necessarily the closest one.
- [nearObjectsReady](../../commands/nearObjectsReady.md): Check whether all data are loaded to nearObjects will return in reasonable time.
- [nearRoads](../../commands/nearRoads.md): Find the road segments within the circle of given radius.
- [nearSupplies](../../commands/nearSupplies.md): Find supplies (weapon holders, ammo crates, fuel feeds, other units) in the sphere with given radius.
- [nearTargets](../../commands/nearTargets.md): Returns a list of targets within the defined range. "Targets" are not restricted to enemy units.
- [playableUnits](../../commands/playableUnits.md): Returns a list of playable units in a multiplayer game (occupied by both AI or players), created on the following sides east/opfor, west/blufor, resistance/independent and civilian only.
- [switchableUnits](../../commands/switchableUnits.md): Returns 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 units for the same side as player's group + player himself - In…
- [targetKnowledge](../../commands/targetKnowledge.md): Returns unit's knowledge about target.
- [targets](../../commands/targets.md): Retrieves list of given unit targets matching specified filter. If the filter is not specified, all targets are returned.
- [targetsQuery](../../commands/targetsQuery.md): Returns sorted array of targets, known to the enquirer (including own troops), where the accuracy coefficient reflects how close the result matches the query. This command could be CPU intensive.
- [units](../../commands/units.md): Returns an array with all the units in the group or unit's group, or all units belonging to a certain side.
- [unitsBelowHeight](../../commands/unitsBelowHeight.md): Returns units in group/array below given Above Terrain Level (ATL) altitude.
- [vehicles](../../commands/vehicles.md): Returns an array of all vehicles available to current client. This command returns both empty and crewed vehicles but not soldiers. It will also return "WeaponHolderSimulated" of dead bodies (weapon on the ground).
