benilla-re systems structs docs

CGPlayer_C::InteractWithSpell

function · objectlayer · primitive

Address
0x5f05e0 · 287 bytes, up to 0x5f06fe
Meaning
Casts the interaction spell on an object in range, else walks up, and sets the auto-loot byte
Confidence
verified, proof one
Finding
objectlayer/interaction#interacting-through-a-spell
Test
objectlayer::p3_attack_range_gate_5f05e0

Finding: Interacting through a spell in objectlayer: interaction

0x5f05e0(object, walk, set, value) interacts with a corpse or player through the spell at 0xb700e4 + 4 and with anything else through the one at 0xb700e4: in range of the spell's maximum it casts at once; out of range it walks up when walk is set, else casts anyway. With set it then sets the auto-loot byte to value.

The derivation is in the doc.

Callers 3

Callees 5

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