benilla-re systems structs docs

CGGameUI::ClosestObjectMatch

function · ui · primitive

Address
0x493aa0 · 443 bytes, up to 0x493c5a
Signature
uint64_t __fastcall (const char *name, uint32_t typeMask, uint32_t mode, uint32_t exactOnly, float maxDistance)
Meaning
Returns the GUID of the party member, raid member or nearby object that best matches a name
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/targeting#matching-a-name

Finding: Matching a name in ui: selecting a target

0x493aa0(name, typeMask, mode, exactOnly, maxDistance) returns the GUID of the best unit for a typed name, or 0. Mode 0 and 2 try the four party slots, then the raid, then every object; mode 1 tries only objects; mode 3 tries party and objects. Party and raid members take the same compare as objects, so they match by prefix too. An object must pass the type mask and the filter, which receives the search's mode. An equal name nearer than the best distance so far ends the search. Otherwise, unless exactOnly, a unit counts by the prefix it shares with the text, at least one character: a longer prefix wins, and at equal length the nearer unit.

The derivation is in the doc.

Callers 9

Callees 6

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