CGPlayer_C::InteractWithSpell
function · objectlayer · primitive
- Address
0x5f05e0· 287 bytes, up to0x5f06fe- 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
- CGCorpse_C::Interact objectlayer
- CGUnit_C::Interact objectlayer
- CGUnit_C::CompleteInteractMove objectlayer
Callees 5
- SetVector3 spline
- CGPlayer_C::SetAutoLoot objectlayer
- CGUnit_C::StartAutoMoveToObject objectlayer
- Spell_C::GetMinMaxRange spell
- CastSpellAsActivePlayer spell
Calls and jumps by a bare address, from tables/calls.tsv.