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

# attachedTo

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

Locality: arguments **global**

## Description

Returns object the given object is attached to or [objNull](../commands/objNull.md) if the given object is not attached to anything.

## Syntax

```sqf
attachedTo obj
```

**Parameters:**

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

**Returns:** [Object](../topics/Object.md) - object the given object is attached to

## Examples

### Example 1

```sqf
if (isNull attachedTo _obj1) then
{
    hint "_obj1 is not attached to anything.";
};
```

## See also

[attachObject](../commands/attachObject.md) · [attachTo](../commands/attachTo.md) · [attachedObjects](../commands/attachedObjects.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 — attachedTo](https://community.bistudio.com/wiki/attachedTo) (revision 369107).</sub>
