benilla-re systems structs docs

Script::ClearTarget

function · ui · primitive

Address
0x489ff0 · 74 bytes, up to 0x48a039
Signature
int __fastcall (lua_State *L)
Meaning
Clears the target and returns 1 when there was one, else nil
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 3

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