Arma 3 Scripting

Function in Modules

BIS_fnc_moduleSector

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

Description

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

--- Get all sectors ---

Syntax

syntax inferred from the function header

[param0, param0, param0, param1, param0] call BIS_fnc_moduleSector

Parameters:

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.

/*
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
*/