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:
unitOrPlayer: Object - unit under remote control or the player controlling a unit
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;