benilla-re systems structs docs

Script::TargetLastTarget

function · ui · primitive

Address
0x489b00 · 56 bytes, up to 0x489b37
Signature
int __fastcall (lua_State *L)
Meaning
Selects the last target, or clears the target when there is none
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 2

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