{"name":"BIS_fnc_vehicleRoles","title":"BIS fnc vehicleRoles","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_vehicleRoles","revid":330776,"updated":"2022-11-01T15:58:26Z","groups":["Vehicles"],"status":"ok","games":{"arma3":"1.00"},"since":"arma3 1.00","arma3_since":"1.00","description":"Returns vehicle roles.","syntaxes":[{"syntax":"vehicle call BIS_fnc_vehicleRoles","params":[{"name":"Object or String","description":"vehicle itself or a classname","type_expr":"Object | String"}],"returns":{"type":"Array","type_expr":"Array","description":"to format [[role, path], [role, path], …] like this:\n```sqf [ [\"Driver\",[]], [\"Turret\",[0]], [\"Turret\",[0,0]], [\"Cargo\",[0]], [\"Cargo\",[1]], // ... ] ```","text":"Array - to format [[role, path], [role, path], …] like this:\n\n```sqf\n[\n    [\"Driver\",[]],\n    [\"Turret\",[0]],\n    [\"Turret\",[0,0]],\n    [\"Cargo\",[0]],\n    [\"Cargo\",[1]],\n    // ...\n]\n```"}}],"examples":[{"code":["cursorObject call BIS_fnc_vehicleRoles;"]},{"code":["\"B_MBT_01_cannon_F\" call BIS_fnc_vehicleRoles;"]}],"see_also":["BIS_fnc_moveIn","assignedVehicleRole","weaponsTurret"]}