Skip to content

ReadBits

StackZ edited this page Jun 17, 2021 · 1 revision

Script function: ReadBits

UniversalEdit.ReadBits(Offset, FirstBits);

This function expects 2 parameters.

  • Offset: The offset from where to start to read from the current file.
  • FirstBits: If reading from the first 4 bits (true) or the last 4 bits (false).

Example

-- The line below will read the first 4 bits (Which would be between 0x0 - 0xF) from offset 0x50.
local FirstBits = UniversalEdit.ReadBits(0x50, true);

Clone this wiki locally