BIS fnc encodeFlags2: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(created page)
 
m (infobox to template)
Line 22: Line 22:


//0.136
//0.136
*/</pre>{{Informative|Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]]}} |Description=
*/</pre>{{placeholder}}<!-- Remove this after fill-in --> |Description=


|[] call [[BIS_fnc_encodeFlags2]]|Syntax=
|[] call [[BIS_fnc_encodeFlags2]]|Syntax=

Revision as of 15:27, 2 April 2019

Hover & click on the images for description

Description

Description:
/*

	Encodes array of unique binary flags (zeroes or ones) into a single scalar.

	Syntax:
	-------
	_encodedFlags:scalar = _flags:array call bis_fnc_encodeFlags2;

	Example:
	--------
	13 = [1,0,1,1] call bis_fnc_encodeFlags2;

	//0.136
*/
Template:placeholder
Execution:
call
Groups:
Uncategorised

Syntax

Syntax:
[] call BIS_fnc_encodeFlags2
Parameters:
parameter: Datatype - (Optional, default defValue) description
Return Value:
Datatype - description

Examples

Example 1:

Additional Information

See also:
See also needed

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