benilla-re systems structs docs

CheckInteractionLeash

function · ui · primitive

Address
0x493230 · 224 bytes, up to 0x49330f
Meaning
Closes the open interaction when its object is released, gone or farther than the squared range
Confidence
verified, proof one
Finding
ui/questshare#the-offer-leash
Test
ui::dist2_493230

Finding: The offer leash in ui: sharing a quest with the party

A latched interaction closes when the player walks too far from its object. The per-frame check 0x493230 reads the squared range 0xb4e2c0 and, for any object but an item, measures the centre-to-centre distance squared in the order (dx*dx + dz*dz) + dy*dy; a distance above the range closes the panel, which for a player-sourced offer reports 3 and for an NPC sends nothing. The opener stores its own range; when the object is a player the range is replaced by (10 + 4)^2 = 196 (14 yards), so a shared quest has a 14-yard leash.

The derivation is in the doc.

Callers 1

Callees 4

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