benilla-re systems structs docs

Script::TargetLastEnemy

function · ui · orchestration

Address
0x489b40 · 13 bytes, up to 0x489b4c
Signature
int __fastcall (lua_State *L)
Meaning
Selects the last attackable target
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/targeting#target-by-token

Finding: Target by token in ui: selecting a target

TargetUnit("unit") resolves the token to a GUID through GetGUIDFromName and calls CGGameUI::Target, which selects the GUID when its unit object exists or it names a raid member or pet. ClearTarget() calls 0x493540(0) and returns 1 if there was a target, else nil. TargetLastTarget() selects the GUID kept at 0xb4e2e0, or clears the target when it is 0, TargetLastEnemy() the one kept at 0xb4e2e8. AttackTarget() calls StartAttack on the active player. All raise Usage: TargetUnit("unit") and the like for a non-string argument, except the argumentless ones.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 1

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