Arma 3 Scripting

isCopilotEnabled

  • Global argument
  • Arma 3 v0.50

Command · Markdown · JSON · original wiki page

Description

Returns true if copilots actions are enabled.

Syntax

isCopilotEnabled vehicle

Parameters:

Returns: Boolean

Examples

Example 1

if (!isCopilotEnabled myHeli) then {
    myHeli enableCopilot true;
};

See also

enableCopilot

Community notes

Strangepete

Only returns whether or not the actions are enabled and shown to the pilot and co-pilot. This will still return TRUE if the pilot uses the 'Lock Controls' action to disable co-pilot controls.
You can use the Arma 3 Event Handler - Controls Shifted to detect 'Take Controls' or 'Release Controls' actions