---
name: "triggerAttachedVehicle"
type: command
status: ok
groups: ["Triggers"]
arma3_since: "0.50"
locality: {"argument": "global", "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/triggerAttachedVehicle
revid: 320994
updated: 2022-05-13T10:28:34Z
---

# triggerAttachedVehicle

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

Locality: arguments **global**

## Description

Returns vehicle attached to the trigger (for example using [triggerAttachVehicle](../commands/triggerAttachVehicle.md)).

> [!IMPORTANT]
> The trigger could be [local](../topics/Multiplayer_Scripting.md#locality) or remote but the result returned by this command will be for the vehicle attached locally on the client that executed the command. See [createTrigger](../commands/createTrigger.md) for more info.

## Syntax

```sqf
triggerAttachedVehicle trigger
```

**Parameters:**

- `trigger`: [Object](../topics/Object.md)

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

## Examples

### Example 1

```sqf
_result = triggerAttachedVehicle triggerName;
```

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

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