{"name":"BIS_fnc_getFactions","title":"BIS fnc getFactions","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_getFactions","revid":379498,"updated":"2026-10-31T00:26:46Z","groups":["Sides"],"status":"ok","games":{"arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"arma2 1.00","arma3_since":"0.50","description":"Gets list and sides of current factions.","syntaxes":[{"syntax":"[parameter] call BIS_fnc_getFactions","params":[{"name":"parameter","type":"Nothing, Object or Array","description":"Nothing, Object or Array\n\n- Nothing or empty Array - returns all factions\n- Object - returns index of the object side\n- Array - side of the first element is returned, others are ignored","type_expr":"Nothing | Object | Array","text":"parameter: Nothing, Object or Array\n\n- Nothing or empty Array - returns all factions\n- Object - returns index of the object side\n- Array - side of the first element is returned, others are ignored"}],"returns":{"types":["Array","String"],"type_expr":"Array<String> | Array<Side> | Number","description":"- Array of Strings - Array of Sides - Number - an index","text":"- Array of Strings\n- Array of Sides\n- Number - an index"}}],"examples":[{"code":["call BIS_fnc_getFactions; // returns all factions"]},{"code":["[] call BIS_fnc_getFactions; // same as Example 1"]},{"code":["[player] call BIS_fnc_getFactions; // returns index of player's faction"]},{"code":["[\"BLU_F\"] call BIS_fnc_getFactions; // returns index of given faction"]},{"code":["[[]] call BIS_fnc_getFactions; // will return all faction sides"]},{"code":["[[player]] call BIS_fnc_getFactions; // will return player's side"]}],"see_also":["faction","side"]}