{"name":"remoteControlled","operator":null,"title":"remoteControlled","type":"command","url":"https://community.bistudio.com/wiki/remoteControlled","revid":349626,"updated":"2023-11-16T13:24:07Z","groups":["Remote Control"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"2.14"}],"since":{"game":"arma3","name":"Arma 3","version":"2.14"},"arma3_since":"2.14","branch":null,"locality":{"argument":"local","effect":null,"server_exec":false},"exec":null,"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.\n\n> [!IMPORTANT]\n> See also Remote Control Tutorial.","syntaxes":[{"syntax":"remoteControlled unitOrPlayer","since":null,"effect":null,"exec":null,"params":[{"name":"unitOrPlayer","type":"Object","optional":false,"default":null,"description":"unit under remote control or the player controlling a unit","types":["Object"],"since":null,"text":"unitOrPlayer: Object - unit under remote control or the player controlling a unit"}],"returns":{"type":"Object","types":["Object"],"description":"the person controlling the unit or the unit controlled by the player; objNull if not applicable","text":"Object - the person controlling the unit or the unit controlled by the player; objNull if not applicable"},"form":"unary","operator":null,"left":null,"right":{"text":"unitOrPlayer","types":["Object"]}}],"examples":[{"text":"```sqf\nprivate _controllingPlayer = remoteControlled _dronePilot;\n```","code":["private _controllingPlayer = remoteControlled _dronePilot;"]},{"text":"```sqf\nprivate _dronePilot = remoteControlled _controllingPlayer;\n```","code":["private _dronePilot = remoteControlled _controllingPlayer;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["remoteControl","isRemoteControlling"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Remote Control","Introduced with Arma 3 version 2.14","Scripting Commands"]}