Arma 3 Scripting

Function in Bitwise

BIS_fnc_encodeFlags8

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

Description

Encodes array of unique 8-state flags (0,1,2,3,4,5,6,7) into a single number.

Syntax

flags call BIS_fnc_encodeFlags8

Parameters:

Returns: Number - encoded flags

Examples

Example 1

private _encodedFlags = [7, 2, 3, 0, 1] call BIS_fnc_encodeFlags8; // 4311

See also

BIS_fnc_decodeFlags8