{"name":"isRemoteControlling","operator":null,"title":"isRemoteControlling","type":"command","url":"https://community.bistudio.com/wiki/isRemoteControlling","revid":347218,"updated":"2023-09-05T16:49:02Z","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 true if the given player is remote-controlling a unit.\n\n> [!IMPORTANT]\n> See also Remote Control Tutorial.","syntaxes":[{"syntax":"isRemoteControlling person","since":null,"effect":null,"exec":null,"params":[{"name":"person","type":"Object","optional":false,"default":null,"description":"a player","types":["Object"],"since":null,"text":"person: Object - a player"}],"returns":{"type":"Boolean","types":["Boolean"],"description":"true if the given player is remote controlling a unit","text":"Boolean - true if the given player is remote controlling a unit"},"form":"unary","operator":null,"left":null,"right":{"text":"person","types":["Object"]}}],"examples":[{"text":"```sqf\nif (isRemoteControlling player) then\n{\n    hint format [\"You are controlling %1\", remoteControlled player];\n}\nelse\n{\n    hint \"Why not remote-control something?\";\n};\n```","code":["if (isRemoteControlling player) then\n{\n\thint format [\"You are controlling %1\", remoteControlled player];\n}\nelse\n{\n\thint \"Why not remote-control something?\";\n};"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["remoteControl","remoteControlled"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Remote Control","Introduced with Arma 3 version 2.14","Scripting Commands"]}