---
name: "attachedObject"
type: command
status: ok
groups: ["Object Manipulation"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/attachedObject
revid: 318758
updated: 2022-05-13T09:21:27Z
---

# attachedObject

*Command · Object Manipulation · Arma 3 v0.50 · introduced in Armed Assault v1.08*

## Description

Returns the object a location is attached to. If the location is unattached, then [objNull](../commands/objNull.md) is returned.

## Syntax

```sqf
attachedObject location
```

**Parameters:**

- `location`: [Location](../topics/Location.md)

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

## Examples

### Example 1

```sqf
_locAttachedObj = attachedObject myLocation;
```

## See also

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

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