# 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
- [F] —
void
— BitMaskSetIndex — ( BitMaskSetIndex ) - [F] —
bitmask
— MakeEmptyBitMask — ( BitMaskMakeDefaultMask ) - [F] —
bool
— BitMaskIsEqual — ( BitMaskIsEqual ) - [F] —
bool
— BitMaskTrueIndex — ( BitMaskTrueIndex ) - [F] —
bool
— BitMaskFalseIndex — ( BitMaskFalseIndex ) - [F] —
void
— BitMaskReset — ( BitMaskReset ) - [F] —
int
— BitMaskCountOnBits — ( BitMaskCountOnBits ) - [F] —
void
— BitMaskAddBitMask — ( BitMaskAddBitMask ) - [F] —
void
— BitMaskAndBitMask — ( BitMaskAndBitMask ) - [F] —
void
— BitMaskOrBitMask — ( BitMaskOrBitMask ) - [F] —
void
— BitMaskXorBitMask — ( BitMaskXorBitMask ) - [F] —
void
— BitMaskInvert — ( BitMaskInvert ) - [F] —
void
— BitMaskLeftShift — ( BitMaskLeftShift ) - [F] —
void
— BitMaskRightShift — ( BitMaskRightShift )
# Examples
# mods/core.stormmod
// L2974
BitMaskSetIndex(lp_integerGroup, lp_toAdd, true)
// L2980
BitMaskSetIndex(lp_integerGroup, lp_toRemove, false)