Skip to content

WriteBits

StackZ edited this page Jun 17, 2021 · 1 revision

Script function: WriteBits

UniversalEdit.WriteBits(Offset, FirstBits, Value);

This function expects 3 parameters.

  • Offset: The offset to where to write to the current file.
  • FirstBits: If it should write to the first 4 bits (true) or the last 4 bits (false).
  • Value: The value to set ( 0x0 - 0xF ).

Example

-- The line below will write the value 0xA to the first bits at offset 0x50.
UniversalEdit.WriteBits(0x50, true, 0xA);
Clone this wiki locally