BIS_fnc_encodeFlags

From Bohemia Interactive Community
Jump to navigation Jump to search
Introduced with Arma 3 version 1.00
  

Click on the images for descriptions

Introduced in

Game:
Arma 3
Version:
1.00

Description

Description:
Encodes array of unique binary flags with indexes between 0-15 into a single scalar.

Syntax

Syntax:
flags call BIS_fnc_encodeFlags
Parameters:
flags: Array - Array of unique binary flags with indexes between 0-15
Return Value:
Scalar - Encoded flags

Examples

Example 1:
_encodedFlags = [0,2,3] call BIS_fnc_encodeFlags;//Returns 13

Additional Information

Execution:
call
Multiplayer:
-
See also:
BIS_fnc_decodeFlags

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bottom Section