---
name: "BIS_fnc_moduleSector"
type: function
status: ok
groups: ["Modules"]
arma3_since: "0.76"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_moduleSector
revid: 309773
updated: 2022-05-05T12:09:49Z
---

# BIS_fnc_moduleSector

*Function · Modules · Arma 3 v0.76*

## Description

Initialize a sector module. Can be also used to get sector parameters.

--- Get all sectors ---

## Syntax

*syntax inferred from the function header*

```sqf
[param0, param0, param0, param1, param0] call BIS_fnc_moduleSector
```

**Parameters:**

- `param0` — 0: BOOL
- `param0` — 0: SIDE
- `param0` — 0: OBJECT - sector module
- `param1` — 1: SIDE
- `param0` — 0: OBJECT - sector module

**Returns:** ARRAY of OBJECTs

--- Get number of sectors held by a side ---
NUMBER - number of sectors owned by the side

--- Set sector owner ---
BOOL

--- Initialize ---
NOTHING

## Function header

The comment at the top of the function's file in the game; this page's description, params, syntax, returns come from it.

```sqf
/*
Description:
Initialize a sector module. Can be also used to get sector parameters.

--- Get all sectors ---
Parameter(s):
    0: BOOL

Returns:
ARRAY of OBJECTs

--- Get number of sectors held by a side ---
Parameter(s):
    0: SIDE

Returns:
NUMBER - number of sectors owned by the side

--- Set sector owner ---
Parameter(s):
    0: OBJECT - sector module
    1: SIDE

Returns:
BOOL

--- Initialize ---
Parameter(s):
    0: OBJECT - sector module

Returns:
NOTHING
*/
```

<sub>Source: [BI Community Wiki — BIS fnc moduleSector](https://community.bistudio.com/wiki/BIS_fnc_moduleSector) (revision 309773).</sub>
