benilla-re systems structs docs

s_tutorialTimerHandle

global · ui

Address
0xb711d8 · 4 bytes, up to 0xb711db
Type
uint32_t
Meaning
Holds the handle of the game timer that runs ProcessTutorialTimers, 0 when none
Confidence
verified, proof one
Finding
ui/tutorials#the-delayed-trigger

Finding: The delayed trigger in ui: tutorials

A delay above 0 cancels the pending timer ProcessTutorialTimers, allocates a 16-byte node (links in the first 8 bytes, the number at +0x8, the deadline now + delay at +0xc, from OsGetAsyncTimeMs), links it into the list 0xb71178 and calls 0x4b57f0(now). That arms one game timer (0x401520) for the smallest time to a deadline, 0 for a deadline already past, and keeps its handle in 0xb711d8. The callback 0x4b5840 clears the handle, plays the sound and signals the event for every node whose deadline has come, frees each, and re-arms through 0x4b57f0. Only one number is queued by the client: number 3, 10000 ms after a forward, backward or autorun press.

The derivation is in the doc.