benilla-re systems structs docs

UseActionSlot

function · ui · primitive

Address
0x4e5ee0 · 585 bytes, up to 0x4e6128
Signature
void __fastcall (uint32_t slot, bool placeFromCursor, bool onSelf)
Meaning
Places, runs, casts, equips or uses what a slot holds
Confidence
verified, proof one
Finding
ui/actionuse#using-an-action

Finding: Using an action in ui: placing, picking up and using actions

UseAction (0x4e7140) takes the slot, a cursor flag and a self flag and runs 0x4e5ee0(slot, cursorFlag, selfFlag). A bad slot or an empty one does nothing. With the cursor flag set and a spell, item, macro or mode 7 payload on the cursor it places instead. Then by kind. A macro runs 0x4f1460(macro id) (ui/macros). A spell s: if 0x4e55f0 holds (its active icon is showing) it cancels the aura with 0x6e7040(s); else if s is the auto-repeat spell it stops it (0x6ea080); else if s is the spell awaiting a target it stops targeting (0x6e4900); else it casts s through 0x6e5a90, with the active player as the target when the self flag is set and none otherwise.

The derivation is in the doc.

Callers 1

Callees 20

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