---
name: "currentPilot"
type: command
status: ok
groups: ["Object Manipulation"]
arma3_since: "1.96"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/currentPilot
revid: 309146
updated: 2022-05-03T14:07:26Z
---

# currentPilot

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

## Description

Returns the person piloting the vehicle. If co-pilot is piloting, co-pilot is returned. If you need current pilot of a UAV or UGV, see [UAVControl](../commands/UAVControl.md) command.

## Syntax

```sqf
currentPilot vehicle
```

**Parameters:**

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

**Returns:** [Object](../topics/Object.md) - piloting unit or [objNull](../commands/objNull.md)

## Examples

### Example 1

```sqf
if (currentPilot _vehicle != driver _vehicle) then
{
    hint "The pilot is not piloting!";
};
```

## See also

[driver](../commands/driver.md) · [gunner](../commands/gunner.md) · [commander](../commands/commander.md) · [effectiveCommander](../commands/effectiveCommander.md) · [turretUnit](../commands/turretUnit.md) · [UAVControl](../commands/UAVControl.md) · [enableCopilot](../commands/enableCopilot.md)

## Community notes

**Killzone_Kid** — 2019-08-20

To return co-pilot units:

```sqf
private _fnc_getCoPilots = 
{
    private _copilotTurrets = allTurrets _this select { getNumber ([_this, _x] call BIS_fnc_turretConfig >> "isCopilot") > 0 };
    private _copilots = _copilotTurrets apply { _this turretUnit _x };
    _copilots;
};

hint str (heli call _fnc_getCoPilots);
```

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