{"name":"isRemoteControlling","title":"isRemoteControlling","type":"command","url":"https://community.bistudio.com/wiki/isRemoteControlling","revid":347218,"updated":"2023-09-05T16:49:02Z","groups":["Remote Control"],"status":"ok","games":{"arma3":"2.14"},"since":"arma3 2.14","arma3_since":"2.14","locality":{"argument":"local"},"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","params":[{"name":"person","type":"Object","description":"a player","type_expr":"Object"}],"returns":{"type":"Boolean","type_expr":"Boolean","description":"true if the given player is remote controlling a unit"},"form":"unary","right":{"text":"person"}}],"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};"]}],"see_also":["remoteControl","remoteControlled"]}