# BitMaskSetIndex
Flags —
Native
|Action
Sets a flag on the bit mask either on or off depending on the boolean Set On. Returns true if the setting worked.
# Arguments
bitmask
— Bit Maskint
— Index to Setbool
— Set On
Returns — void
native void BitMaskSetIndex(
bitmask mask,
int index,
bool on,
);
# Related
Category: BitMask / Core Functions
- BitMaskSetIndex —
void
— BitMaskSetIndex - MakeEmptyBitMask —
bitmask
— BitMaskMakeDefaultMask - BitMaskIsEqual —
bool
— BitMaskIsEqual - BitMaskTrueIndex —
bool
— BitMaskTrueIndex - BitMaskFalseIndex —
bool
— BitMaskFalseIndex - BitMaskReset —
void
— BitMaskReset - BitMaskCountOnBits —
int
— BitMaskCountOnBits - BitMaskAddBitMask —
void
— BitMaskAddBitMask - BitMaskAndBitMask —
void
— BitMaskAndBitMask - BitMaskOrBitMask —
void
— BitMaskOrBitMask - BitMaskXorBitMask —
void
— BitMaskXorBitMask - BitMaskInvert —
void
— BitMaskInvert - BitMaskLeftShift —
void
— BitMaskLeftShift - BitMaskRightShift —
void
— BitMaskRightShift
# Examples
mods/core.stormmod — base.stormdata/TriggerLibs/NativeLib.galaxy:2974
// Automatic Variable Declarations
// Implementation
BitMaskSetIndex(lp_integerGroup, lp_toAdd, true);
}
mods/core.stormmod — base.stormdata/TriggerLibs/NativeLib.galaxy:2980
// Automatic Variable Declarations
// Implementation
BitMaskSetIndex(lp_integerGroup, lp_toRemove, false);
}