benilla-re systems structs docs

s_interactRangeSquared

global · ui

Address
0xb4e2c0 · 4 bytes, up to 0xb4e2c3
Type
float
Meaning
Holds the squared leash of the open interaction, 196.0 for a player and the opener's range otherwise
Confidence
verified, proof one
Finding
ui/questshare#the-offer-leash

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.