Arma 3 Scripting

Function in Sides

BIS_fnc_getFactions

Also available as Markdown and JSON, or read the original wiki page.

Description

Gets list and sides of current factions.

Syntax

[parameter] call BIS_fnc_getFactions

Parameters:

Returns: - Array of Strings

Examples

Example 1

call BIS_fnc_getFactions; // returns all factions

Example 2

[] call BIS_fnc_getFactions; // same as Example 1

Example 3

[player] call BIS_fnc_getFactions; // returns index of player's faction

Example 4

["BLU_F"] call BIS_fnc_getFactions; // returns index of given faction

Example 5

[[]] call BIS_fnc_getFactions; // will return all faction sides

Example 6

[[player]] call BIS_fnc_getFactions; // will return player's side

See also

faction · side