SetInteractionTarget
function · ui · primitive
- Address
0x4930d0· 233 bytes, up to0x4931b8- Meaning
- Stores the interaction GUID and squared range, replacing the range by 196.0 for a player
- Confidence
- verified, proof one
- Finding
- ui/questshare#the-offer-leash
- Test
ui::glue_492_4930d0_threshold_fold
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 14
- OpenMailbox ui
- CGTradeInfo::SetTradePartner ui
- SendLotteryQuery ui
- SetStableMaster ui
- OpenAuctionHouse ui
- SetTrainer ui
- OpenTaxiMap ui
- SetGossipTarget ui
- SetItemTextObject ui
- OpenGuildRegistrar ui
- OpenTabardFrame ui
- SetBankInteraction ui
- OpenMerchantWindow ui
- SetQuestPanelText ui
Callees 5
- ClntObjMgrObjectPtr objectlayer
- EndInteractionWithGuid ui
- CGGameObject_C::OnFrameOpen objectlayer
- CGUnit_C::UpdateBaseAnimation objectlayer
- CGUnit_C::PlayNPCSound objectlayer
Calls and jumps by a bare address, from tables/calls.tsv.