---
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: 327746
updated: 2022-07-13T11:00:20Z
---

# 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) 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 [String](../topics/String.md)s
- [Array](../topics/Array.md) of [Side](../topics/Side.md)s
- [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 327746).</sub>
