Arma 3 Scripting

Command in Object Manipulation

enableCopilot

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

Description

Enables copilot actions, toggles availability of the actions related to copilots, such as taking over controls, suspending controls, etc. This command triggers the "ControlsShifted" event handler.

Syntax

vehicle enableCopilot enable

Parameters:

Returns: Nothing

Examples

Example 1

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

Multiplayer

Execute this command globally (e.g with remoteExec) to have it synced on all clients.

See also

isCopilotEnabled · currentPilot