---
name: "driver"
type: command
status: ok
groups: ["Object Manipulation"]
arma3_since: "0.50"
locality: {"argument": "global", "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/driver
revid: 308923
updated: 2022-04-18T18:03:59Z
---

# driver

*Command · Object Manipulation · Arma 3 v0.50 · introduced in Operation Flashpoint v1.00*

Locality: arguments **global**

## Description

Returns the driver of a vehicle.

## Syntax

```sqf
driver vehicle
```

**Parameters:**

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

**Returns:** [Object](../topics/Object.md) -
The unit sitting in the driver place is returned. If vehicle is not a vehicle but a person, the person is returned.

## Examples

### Example 1

```sqf
(driver _tank) action ["getout", _tank];
```

### Example 2

```sqf
driver vehicle player isEqualTo player // check if player is driver of current vehicle
```

## See also

[commander](../commands/commander.md) · [gunner](../commands/gunner.md) · [crew](../commands/crew.md) · [currentPilot](../commands/currentPilot.md)

## Community notes

**Hardrock** — 2006-08-03

*Notes from before the conversion:*

It is also possible to find the driver of a vehicle by placing a **D** after the name of the vehicle so *Tank1D* and ***driver** Tank1* both refer to the same unit, providing the original driver has not got out of the tank.

The difference between the two is *Tank1D* is always the unit that was driver of the tank when the mission started, whilst ***driver** Tank1* is the driver which is now there.

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