benilla-re systems structs docs

UnlockScriptObject

function · ui · orchestration

Address
0x701cd0 · 163 bytes, up to 0x701d72
Meaning
Counts a holder down and at zero clears element 0 of the table and frees its reference
Confidence
verified, proof two
Finding
ui/script#the-script-object

Finding: The script object in ui: the script layer and events

The script object is 0x24 bytes with the vtable 0x811f4c: a count of holders of its Lua table (+0x4), the registry reference of that table (+0x8, −2 when there is none), its OnEvent slot (+0xc), and an array of the event indices it listens to (capacity +0x14, count +0x18, data +0x1c, grow step +0x20). Its Lua table is made on first use: a table whose element 0 is the object as light userdata, with the metatable the global __framescript_meta holds. Releasing the last holder clears element 0, leaves the metatable, and frees the reference.

The derivation is in the doc.

Callers 5

Callees 10

Calls and jumps by a bare address, from tables/calls.tsv.