---
name: "allMissionObjects"
type: command
status: ok
groups: ["Object Detection"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/allMissionObjects
revid: 369567
updated: 2024-09-24T07:52:15Z
---

# allMissionObjects

*Command · Object Detection · Arma 3 v0.50 · introduced in Arma 2: Operation Arrowhead v1.57*

## Description

Returns all objects of the given type that are currently present in the mission. In some cases, the [entities](../commands/entities.md) and [allObjects](../commands/allObjects.md) commands are much faster alternatives to this command.

Some of the special types that can be detected with this command (and with [nearestObject](../commands/nearestObject.md)):
- `""` - returns everything, e.g. agents, bees, mosquitoes, footprints, armed mines, ...
- `"all"` - more restrictive than `""`: no ambient insects, only agents such as rabbits and snakes, no footprints, tracks, no armed mines
- `"#slop"` - blood drops
- `"#mark"` - unit footprints
- `"#track"` - vehicle tracks
- `"#crater"` - explosion craters on the ground
- `"#crateronvehicle"` - bullet marks on vehicles
- `"#explosion"` - explosions
- `"#objectdestructed"` - building, tree or bush destruction
- `"#soundonvehicle"` - sounds created with [say3D](../commands/say3D.md) for example
- `"#dynamicsound"` - sound sources created using [createSoundSource](../commands/createSoundSource.md)
- `"EmptyDetector"` - all Triggers
- `"Logic"` - all game logics

> [!IMPORTANT]
> This command is quite performance heavy. Use with caution!

## Syntax

```sqf
allMissionObjects type
```

**Parameters:**

- `type`: [String](../topics/String.md)

**Returns:** [Array](../topics/Array.md) of [Object](../topics/Object.md)s

## Examples

### Example 1

```sqf
_airObjects = allMissionObjects "Air";
```

### Example 2

```sqf
{ deleteVehicle _x; } forEach (allMissionObjects "");
```

### Example 3

```sqf
_allMObjects = allMissionObjects "All";
```

## Multiplayer

> [!NOTE]
> This command is ~5 times faster on a dedicated server than on a client. Reason unknown.

## See also

[allObjects](../commands/allObjects.md) · [allDead](../commands/allDead.md) · [allGroups](../commands/allGroups.md) · [allUnits](../commands/allUnits.md) · [entities](../commands/entities.md) · [vehicles](../commands/vehicles.md) · [allMines](../commands/allMines.md) · [allSimpleObjects](../commands/allSimpleObjects.md)

<sub>Source: [BI Community Wiki — allMissionObjects](https://community.bistudio.com/wiki/allMissionObjects) (revision 369567).</sub>
