{"name":"unitTurret","operator":null,"title":"unitTurret","type":"command","url":"https://community.bistudio.com/wiki/unitTurret","revid":377504,"updated":"2026-01-02T06:49:34Z","groups":["Turrets"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"2.00"}],"since":{"game":"arma3","name":"Arma 3","version":"2.00"},"arma3_since":"2.00","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Returns the turret path the given vehicle's gunner is in.\nTo get the turret's unit see turretUnit.","syntaxes":[{"syntax":"vehicle unitTurret gunner","since":null,"effect":null,"exec":null,"params":[{"name":"vehicle","type":"Object","optional":false,"default":null,"description":null,"types":["Object"],"since":null,"text":"vehicle: Object"},{"name":"gunner","type":"Object","optional":false,"default":null,"description":null,"types":["Object"],"since":null,"text":"gunner: Object"}],"returns":{"type":"Turret Path","types":["Turret Path"],"description":"`[-1]` is returned if the gunner is also the driver. When no units are in any of vehicle's turret, empty array `[]` is returned.","text":"Turret Path\n- `[-1]` is returned if the gunner is also the driver.\nWhen no units are in any of vehicle's turret, empty array `[]` is returned."},"form":"binary","operator":null,"left":{"text":"vehicle","types":["Object"]},"right":{"text":"gunner","types":["Object"]}}],"examples":[{"text":"```sqf\n_vehicle unitTurret _gunner;\n```","code":["_vehicle unitTurret _gunner;"]},{"text":"```sqf\nvehicle player unitTurret player;\n```","code":["vehicle player unitTurret player;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["turretUnit","driver","gunner","commander","effectiveCommander","currentPilot","moveInTurret","assignAsTurret","assignedVehicleRole","lockedTurret","isTurnedOut"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Turrets","Introduced with Arma 3 version 2.00","Scripting Commands"]}