Skip to content

ReadBit

StackZ edited this page Jun 17, 2021 · 1 revision

Script function: ReadBit

UniversalEdit.ReadBit(Offset, BitIndex);

This function expects 2 parameters.

  • Offset: The offset from where to start to read from the current file.
  • BitIndex: The Bit Index to read from ( 0 - 7 ).

Example

-- The line below will read the 5th Bit Index from Offset 0x50.
local Bit = UniversalEdit.ReadBit(0x50, 4); -- Do NOTE, that the bit indexes start at 0, so if you are reading the last bit which would be `8` you need to access `7`.

Clone this wiki locally