---
name: "triggerAttachVehicle"
type: command
status: ok
groups: ["Triggers"]
arma3_since: "0.50"
locality: {"argument": "global", "effect": "local", "server_exec": false}
source: https://community.bistudio.com/wiki/triggerAttachVehicle
revid: 377073
updated: 2026-01-01T09:31:40Z
---

# triggerAttachVehicle

*Command · Triggers · Arma 3 v0.50 · introduced in Armed Assault v1.00*

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

## Description

Specifies the entity which will activate the selected trigger.

- If **[]** is given, the trigger is decoupled from the assigned vehicle (example 2).
- If the activation source is **"VEHICLE"**, **"GROUP"**, **"LEADER"** or **"MEMBER"**, it is changed to **"NONE"**.
- If **[vehicle]** is given, the trigger is coupled to the vehicle or its group.
- When the source is **"GROUP"**, **"LEADER"** or **"MEMBER"**, it is coupled to the group, otherwise it is coupled to the vehicle and the source is changed to **"VEHICLE"**.

## Syntax

```sqf
triggerName triggerAttachVehicle objects
```

**Parameters:**

- `triggerName`: [Object](../topics/Object.md)
- `objects`: [Array](../topics/Array.md) of [Object](../topics/Object.md)s

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

## Examples

### Example 1

```sqf
trigger triggerAttachVehicle [player];
```

### Example 2

```sqf
trigger triggerAttachVehicle [];
```

## 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) · [attachedObject](../commands/attachedObject.md) · [triggerAttachedVehicle](../commands/triggerAttachedVehicle.md) · [triggerAttachObject](../commands/triggerAttachObject.md) · [triggerInterval](../commands/triggerInterval.md) · [setTriggerInterval](../commands/setTriggerInterval.md)

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