{"name":"getConnectedUAVUnit","operator":null,"title":"getConnectedUAVUnit","type":"command","url":"https://community.bistudio.com/wiki/getConnectedUAVUnit","revid":363204,"updated":"2024-03-25T20:23:08Z","groups":["Remote Control"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"2.08"}],"since":{"game":"arma3","name":"Arma 3","version":"2.08"},"arma3_since":"2.08","branch":null,"locality":{"argument":"local","effect":null,"server_exec":false},"exec":null,"description":"Returns UAV/UGV AI unit, which player is controlling. To return UAV vehicle, see getConnectedUAV","syntaxes":[{"syntax":"getConnectedUAVUnit person","since":null,"effect":null,"exec":null,"params":[{"name":"person","type":"Object","optional":false,"default":null,"description":"unit controlling the UAV/UGV","types":["Object"],"since":null,"text":"person: Object - unit controlling the UAV/UGV"}],"returns":{"type":"Object","types":["Object"],"description":"UAV unit (AI driver or AI gunner) or objNull otherwise including if the connected person is remote","text":"Object - UAV unit (AI driver or AI gunner) or objNull otherwise including if the connected person is remote"},"form":"unary","operator":null,"left":null,"right":{"text":"person","types":["Object"]}}],"examples":[{"text":"```sqf\nprivate _playersDrone = getConnectedUAVUnit player;\n```","code":["private _playersDrone = getConnectedUAVUnit player;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["getConnectedUAV","isUAVConnected"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Remote Control","Introduced with Arma 3 version 2.08","Scripting Commands"]}