BIS fnc bitflagsSet: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|(arg|eff|serverExec|mp|seealso)= " to "")
m (Text replacement - " \| *(\[\[[a-zA-Z ]+\]\].+) \|x1=" to " |r1=$1 |x1=")
Line 19: Line 19:
|p2= flag: [[Number]] - one or more flags to set
|p2= flag: [[Number]] - one or more flags to set


| [[Number]]  - new flagset with given flag or flags set
|r1=[[Number]]  - new flagset with given flag or flags set


|x1=<code>[0, 16] [[call]] [[BIS_fnc_bitflagsSet]]; // 16
|x1=<code>[0, 16] [[call]] [[BIS_fnc_bitflagsSet]]; // 16

Revision as of 20:26, 10 June 2021

Hover & click on the images for description

Description

Description:
Description needed
Execution:
call
Groups:
Bitwise

Syntax

Syntax:
Syntax needed
Parameters:
flagset: Number - flagset
flag: Number - one or more flags to set
Return Value:
Number - new flagset with given flag or flags set

Examples

Example 1:
[0, 16] call BIS_fnc_bitflagsSet; // 16 [16, 2] call BIS_fnc_bitflagsSet; // 18 (which is 2 + 16) [18, 2 + 8 + 16] call BIS_fnc_bitflagsSet; // 26 (which is 2 + 8 + 16)

Additional Information

See also:
BIS fnc bitflagsFlipBIS fnc bitflagsCheckBIS fnc bitflagsToArrayBIS fnc bitflagsUnset

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