---
name: "BIS_fnc_getFactions"
type: function
status: ok
groups: ["Sides"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_getFactions
revid: 379498
updated: 2026-10-31T00:26:46Z
---

# BIS_fnc_getFactions

*Function · Sides · Arma 3 v0.50 · introduced in Arma 2 v1.00*

## Description

Gets list and sides of current factions.

## Syntax

```sqf
[parameter] call BIS_fnc_getFactions
```

**Parameters:**

- `parameter`: [Nothing](../topics/Nothing.md), [Object](../topics/Object.md) or [Array](../topics/Array.md)

  - [Nothing](../topics/Nothing.md) or empty [Array](../topics/Array.md) - returns all factions
  - [Object](../topics/Object.md) - returns index of the object side
  - [Array](../topics/Array.md) - [side](../commands/side.md) of the first element is returned, others are ignored

**Returns:** - [Array](../topics/Array.md) of [Strings](../topics/String.md)
- [Array](../topics/Array.md) of [Sides](../topics/Side.md)
- [Number](../topics/Number.md) - an index

## Examples

### Example 1

```sqf
call BIS_fnc_getFactions; // returns all factions
```

### Example 2

```sqf
[] call BIS_fnc_getFactions; // same as Example 1
```

### Example 3

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

### Example 4

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

### Example 5

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

### Example 6

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

## See also

[faction](../commands/faction.md) · [side](../commands/side.md)

<sub>Source: [BI Community Wiki — BIS fnc getFactions](https://community.bistudio.com/wiki/BIS_fnc_getFactions) (revision 379498).</sub>
