---
name: "attachedObjects"
type: command
status: ok
groups: ["Object Manipulation"]
arma3_since: "1.14"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/attachedObjects
revid: 369106
updated: 2024-09-03T10:27:01Z
---

# attachedObjects

*Command · Object Manipulation · Arma 3 v1.14*

## Description

Returns a list of objects attached to the given object.

## Syntax

```sqf
attachedObjects obj
```

**Parameters:**

- `obj`: [Object](../topics/Object.md) - given object

**Returns:** [Array](../topics/Array.md) of [Object](../topics/Object.md)s attached to the given object

## Examples

### Example 1

```sqf
{ detach _x } forEach attachedObjects player;
```

### Example 2

```sqf
if (count attachedObjects player == 0) then
{
    hint "There are no objects attached to player";
};
```

## See also

[attachObject](../commands/attachObject.md) · [attachTo](../commands/attachTo.md) · [attachedTo](../commands/attachedTo.md) · [waypointAttachVehicle](../commands/waypointAttachVehicle.md) · [waypointAttachedVehicle](../commands/waypointAttachedVehicle.md) · [lightAttachObject](../commands/lightAttachObject.md) · [triggerAttachVehicle](../commands/triggerAttachVehicle.md) · [attachedObject](../commands/attachedObject.md) · [detach](../commands/detach.md)

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