{"name":"BIS_fnc_encodeFlags","operator":null,"title":"BIS fnc encodeFlags","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_encodeFlags","revid":348540,"updated":"2023-11-08T13:06:07Z","groups":["Bitwise"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.00"}],"since":{"game":"arma3","name":"Arma 3","version":"1.00"},"arma3_since":"1.00","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Encodes array of unique binary flags with indexes between 0-15 into a single scalar.","syntaxes":[{"syntax":"flags call BIS_fnc_encodeFlags","since":null,"effect":null,"exec":null,"params":[{"name":"flags","type":"Array","optional":false,"default":null,"description":"array of unique binary flags with indexes between 0-15","types":["Array"],"since":null,"text":"flags: Array - array of unique binary flags with indexes between 0-15"}],"returns":{"type":"Number","types":["Number"],"description":"encoded flags","text":"Number - encoded flags"}}],"examples":[{"text":"```sqf\nprivate _encodedFlags = [0,2,3] call BIS_fnc_encodeFlags;//Returns 13\n```","code":["private _encodedFlags = [0,2,3] call BIS_fnc_encodeFlags;//Returns 13"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["BIS_fnc_decodeFlags"],"notes":[],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: Bitwise","Functions","Introduced with Arma 3 version 1.00"],"docblock":null,"filled_from_docblock":[]}