{"name":"BIS_fnc_decodeFlags8","operator":null,"title":"BIS fnc decodeFlags8","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_decodeFlags8","revid":373739,"updated":"2025-06-24T19:02:20Z","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":"Decodes a single scalar into array of unique 8-state flags (values 0,1,2,3,4,5,6,7).","syntaxes":[{"syntax":"[encodedFlags, size] call BIS_fnc_decodeFlags8","since":null,"effect":null,"exec":null,"params":[{"name":"encodedFlags","type":"Number","optional":false,"default":null,"description":"non-decimal number between 0 and 16777215","types":["Number"],"since":null,"text":"encodedFlags: Number - non-decimal number between 0 and 16777215"},{"name":"size","type":"Number","optional":true,"default":"-1","description":"output size. Size -1 means output will not be resized","types":["Number"],"since":null,"text":"size: Number - (Optional, default -1) output size. Size -1 means output will not be resized"}],"returns":{"type":"Number","types":["Number"],"description":"decoded flags","text":"Number - decoded flags"}}],"examples":[{"text":"```sqf\nprivate _decodedFlags = 4311 call BIS_fnc_decodeFlags8; // [7,2,3,0,1]\n```","code":["private _decodedFlags = 4311 call BIS_fnc_decodeFlags8; // [7,2,3,0,1]"]},{"text":"```sqf\nprivate _decodedFlags = [4311, 8] call BIS_fnc_decodeFlags8; // [7,2,3,0,1,0,0,0]\n```","code":["private _decodedFlags = [4311, 8] call BIS_fnc_decodeFlags8; // [7,2,3,0,1,0,0,0]"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["BIS_fnc_encodeFlags8"],"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":[]}