---
name: "detachChild"
type: command
status: ok
groups: ["PhysX"]
arma3_since: "2.22"
locality: {"argument": "local", "effect": "global", "server_exec": false}
source: https://community.bistudio.com/wiki/detachChild
revid: 378900
updated: 2026-08-11T14:56:33Z
---

# detachChild

*Command · PhysX · Arma 3 v2.22*

Locality: arguments **local** · effect **global**

## Description

Detaches previously attached with [attachChild](../commands/attachChild.md) object.

## Syntax

```sqf
detachChild parent
```

**Parameters:**

- `parent`: [Object](../topics/Object.md) - The parent object that another object is attached to. Must be a Transport vehicle like Car/Tank (Maybe helicopter/airplane works?).

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

## Examples

### Example 1

```sqf

```

### Example 2

```sqf

```

### Example 3

```sqf

```

### Example 4

```sqf

```

### Example 5

```sqf

```

## See also

[attachChild](../commands/attachChild.md) · [childAttached](../commands/childAttached.md) · [parentAttached](../commands/parentAttached.md) · chainedObjects

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