Arma 3 Scripting

Command in Object Manipulation

currentPilot

Also available as Markdown and JSON, or read the original wiki page.

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 command.

Syntax

currentPilot vehicle

Parameters:

Returns: Object - piloting unit or objNull

Examples

Example 1

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

See also

driver · gunner · commander · effectiveCommander · turretUnit · UAVControl · enableCopilot

Community notes