GetBit
From GECK
A function added by the New Vegas Script Extender.
Contents
Description
Returns the value of the bit at the specified position in a bitmask. Bit indices start at 0 and should not be greater than 20- higher values are unreliable and prone to conversion.
Syntax
(bool) GetBit BitMask:int BitIndex:int
Example
int BitMask int BitTwo set BitMask to 11 ; binary: 00001011 set BitTwo to GetBit BitMask, 1 ; 1