Arma 3 Scripting

remoteControlled

  • Local argument
  • Arma 3 v2.14

Command · Markdown · JSON · original wiki page

Description

Returns the player controlling the given unit if the argument is the unit, or the unit controlled by the player if the argument is the player.

Important

See also Remote Control Tutorial.

Syntax

remoteControlled unitOrPlayer

Parameters:

Returns: Object - the person controlling the unit or the unit controlled by the player; objNull if not applicable

Examples

Example 1

private _controllingPlayer = remoteControlled _dronePilot;

Example 2

private _dronePilot = remoteControlled _controllingPlayer;

See also

remoteControl · isRemoteControlling