benilla-re systems structs docs

ClickObjectByAction

function · ui · orchestration

Address
0x4949f0 · 83 bytes, up to 0x494a42
Signature
void __fastcall (uint32_t action, uint64_t guid)
Meaning
Selects for action 1 and interacts for action 4
Confidence
verified, proof one
Finding
ui/mouseover#interacting-by-click

Finding: Interacting by click in ui: the world under the pointer

Interacting (0x492820, action 4) looks the GUID up as any object and, when one is found, calls the select 0x493540 and then the object's interact virtual (slot 0x60) with the Shift state as its argument. The interact runs for every found object. The select stores a target only when the object's slot 0x58 answers nonzero, and only units and players give a nonzero answer: a game object, a corpse, an item or a dynamic object is interacted with and never becomes the target. While a spell awaits a target, the select binds the object to the spell instead. 0x4949f0(action, guid) runs select for 1 and interact for 4 when an active player exists.

The derivation is in the doc.

Callers 1

Callees 4

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