Arma 3 Scripting

currentPilot

  • Arma 3 v1.96

Command · Markdown · JSON · 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