benilla-re systems structs docs

Script::UnitExists

function · ui · orchestration

Address
0x515fb0 · 122 bytes, up to 0x516029
Signature
int __fastcall (lua_State *L)
Meaning
Pushes 1 for a selectable held unit or a roster member, else nil
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/unitinfo#unitexists

Finding: UnitExists in ui: unit presence, flags, classification and type

UnitExists(unit) looks the GUID up with type mask 1 (any object). A found object answers through its virtual slot 22 ([vtable+0x58]); a nonzero result pushes 1. A missing object, or a refusal, falls to 0x491900, which is 1 for a party or raid member or pet and 0 for a zero GUID. Nil when both fail. There is no Usage: check.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 6

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