{"name":"unitIsUAV","title":"unitIsUAV","type":"command","url":"https://community.bistudio.com/wiki/unitIsUAV","revid":338990,"updated":"2023-04-23T07:34:22Z","groups":["Remote Control"],"status":"ok","games":{"arma3":"1.64"},"since":"arma3 1.64","arma3_since":"1.64","description":"Returns whether or not the given transport object is a drone (UAV, UGV), regardless of if it has a crew or if it is empty,\ncorresponding to the `isUAV` transport parameter.\nArma 3 v2.14 The command can be used to check if the provided unit is a UAV unit.","syntaxes":[{"syntax":"unitIsUAV object","params":[{"name":"object","type":"Object","description":"vehicle or Arma 3 v2.14 unit","type_expr":"Object"}],"returns":{"type":"Boolean","type_expr":"Boolean","description":"true when UAV"},"form":"unary","right":{"text":"object"}}],"examples":[{"text":"```sqf\nunitIsUAV _myUAV;            // true (whether it has driver/gunner or not)\nunitIsUAV driver _myUAV;    // true (provided there is a driver)\nunitIsUAV gunner _myUAV;    // true (provided there is a gunner)\n```","code":["unitIsUAV _myUAV;\t\t\t// true (whether it has driver/gunner or not)\nunitIsUAV driver _myUAV;\t// true (provided there is a driver)\nunitIsUAV gunner _myUAV;\t// true (provided there is a gunner)"]}],"see_also":["allUnitsUAV"]}