{"name":"BIS_fnc_vehicleRoles","operator":null,"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","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.00"}],"since":{"game":"arma3","name":"Arma 3","version":"1.00"},"arma3_since":"1.00","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Returns vehicle roles.","syntaxes":[{"syntax":"vehicle call BIS_fnc_vehicleRoles","since":null,"effect":null,"exec":null,"params":[{"name":"Object or String","type":null,"optional":false,"default":null,"description":"vehicle itself or a classname","types":["Object","String"],"since":null,"text":"Object or String - vehicle itself or a classname"}],"returns":{"type":"Array","types":["Array"],"description":"to format [[role, path], [role, path], …] like this: ```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":[{"text":"```sqf\ncursorObject call BIS_fnc_vehicleRoles;\n```","code":["cursorObject call BIS_fnc_vehicleRoles;"]},{"text":"```sqf\n\"B_MBT_01_cannon_F\" call BIS_fnc_vehicleRoles;\n```","code":["\"B_MBT_01_cannon_F\" call BIS_fnc_vehicleRoles;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["BIS_fnc_moveIn","assignedVehicleRole","weaponsTurret"],"notes":[],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: Vehicles","Functions","Introduced with Arma 3 version 1.00"],"docblock":null,"filled_from_docblock":[]}