---
name: "allSimpleObjects"
type: command
status: ok
groups: ["Object Detection"]
arma3_since: "1.68"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/allSimpleObjects
revid: 377075
updated: 2026-01-01T09:37:55Z
---

# allSimpleObjects

*Command · Object Detection · Arma 3 v1.68*

## Description

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.

> [!NOTE]
> - There is no inheritance in simple objects, so only exact class match is allowed.
> - *className* is not case sensitive.

## Syntax

```sqf
allSimpleObjects classes
```

**Parameters:**

- `classes`: [Array](../topics/Array.md) of [String](../topics/String.md)s - classnames array. Use `[]` to return all simple objects

**Returns:** [Array](../topics/Array.md) of [Object](../topics/Object.md)s - all [simple objects](../commands/createSimpleObject.md)

## Examples

### Example 1

```sqf
private _boxesAndChairs = allSimpleObjects ["Box_NATO_Equip_F", "Land_CampingChair_V2_F"];
```

### Example 2

```sqf
private _allSimpleObjects = allSimpleObjects [];
```

## See also

[createSimpleObject](../commands/createSimpleObject.md) · [isSimpleObject](../commands/isSimpleObject.md) · [nearestObjects](../commands/nearestObjects.md) · [nearObjectsReady](../commands/nearObjectsReady.md) · [nearObjects](../commands/nearObjects.md) · [nearestObject](../commands/nearestObject.md) · [createVehicle](../commands/createVehicle.md)

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