BIS_fnc_encodeFlags4

From Bohemia Interactive Community
Hover & click on the images for description

Description

Description:
Encodes array of unique 4-state flags (0,1,2,3) into a single number.
Execution:
call
Groups:
Bitwise

Syntax

Syntax:
flags call BIS_fnc_encodeFlags4
Parameters:
flags: Array of Numbers - collections of 4-state flags. Maximum number of flags is 12.
Return Value:
Number - encoded flags

Examples

Example 1:
private _encodedFlags = [1, 0, 2, 3] call BIS_fnc_encodeFlags4; // 225

Additional Information

See also:
BIS_fnc_decodeFlags4

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note