{"name":"BIS_fnc_encodeFlags4","operator":null,"title":"BIS fnc encodeFlags4","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_encodeFlags4","revid":373737,"updated":"2025-06-24T17:58:44Z","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 4-state flags (0,1,2,3) into a single number.","syntaxes":[{"syntax":"flags call BIS_fnc_encodeFlags4","since":null,"effect":null,"exec":null,"params":[{"name":"flags","type":"Array of Numbers","optional":false,"default":null,"description":"collections of 4-state flags. Maximum number of flags is 12.","types":["Array","Number"],"since":null,"text":"flags: Array of Numbers - collections of 4-state flags. Maximum number of flags is 12."}],"returns":{"type":"Number","types":["Number"],"description":"encoded flags","text":"Number - encoded flags"}}],"examples":[{"text":"```sqf\nprivate _encodedFlags = [1, 0, 2, 3] call BIS_fnc_encodeFlags4; // 225\n```","code":["private _encodedFlags = [1, 0, 2, 3] call BIS_fnc_encodeFlags4; // 225"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["BIS_fnc_decodeFlags4"],"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":[]}