{"name":"BIS_fnc_decodeFlags","operator":null,"title":"BIS fnc decodeFlags","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_decodeFlags","revid":349095,"updated":"2023-11-08T14:49:33Z","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 binary flags with indexes between 0-15.","syntaxes":[{"syntax":"scalar call BIS_fnc_decodeFlags","since":null,"effect":null,"exec":null,"params":[{"name":"scalar","type":"Number","optional":false,"default":null,"description":"scalar (max. 65535, 2^16-1)","types":["Number"],"since":null,"text":"scalar: Number - scalar (max. 65535, 2^16-1)"}],"returns":{"type":"Array","types":["Array"],"description":"flags (See parameter of BIS_fnc_encodeFlags)","text":"Array - flags (See parameter of BIS_fnc_encodeFlags)"}}],"examples":[{"text":"```sqf\nprivate _decodedFlags = 13 call BIS_fnc_decodeFlags;//Returns [0,2,3]\n```","code":["private _decodedFlags = 13 call BIS_fnc_decodeFlags;//Returns [0,2,3]"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["BIS_fnc_encodeFlags"],"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":[]}