BIS fnc encodeFlags4: Difference between revisions
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...) |
No edit summary |
||
(17 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=function | ||
| arma3 | |game1= arma3 | ||
|version1= 1.00 | |||
| | |gr1= Bitwise | ||
| | |descr= Encodes array of unique 4-state flags (0,1,2,3) into a single number. | ||
|s1= flags call [[BIS_fnc_encodeFlags4]] | |||
|p1= flags: [[Array]] of [[Number]]s - collections of 4-state flags. Maximum number of flags is 12. | |||
| | |r1= [[Number]] - encoded flags | ||
|x1= <sqf>private _encodedFlags = [1, 0, 2, 3] call BIS_fnc_encodeFlags4; // 225</sqf> | |||
|seealso= [[BIS_fnc_decodeFlags4]] | |||
}} | }} | ||
Latest revision as of 19:58, 24 June 2025
Description
- Description:
- Encodes array of unique 4-state flags (0,1,2,3) into a single number.
- Execution:
- call
- Groups:
- Bitwise
Syntax
- Syntax:
- flags call BIS_fnc_encodeFlags4
- Parameters:
- flags: Array of Numbers - collections of 4-state flags. Maximum number of flags is 12.
- Return Value:
- Number - encoded flags
Examples
- Example 1:
Additional Information
- See also:
- BIS_fnc_decodeFlags4
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note