# BitMaskSetIndex

FlagsNative | 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 Mask
  • int — Index to Set
  • bool — Set On

Returns — void

native void BitMaskSetIndex(
	bitmask mask,
	int index,
	bool on,
);

Category: BitMask / Core Functions

# Examples

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:2974

    // Automatic Variable Declarations
    // Implementation
    BitMaskSetIndex(lp_integerGroup, lp_toAdd, true);
}

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:2980

    // Automatic Variable Declarations
    // Implementation
    BitMaskSetIndex(lp_integerGroup, lp_toRemove, false);
}