CGGameUI::ConsiderNameMatch
function · ui · primitive
- Address
0x493c60· 208 bytes, up to0x493d2f- Signature
uint32_t __fastcall (void *search, const uint64_t *guid, const char *name, float distance)- Meaning
- Scores one named candidate against the search, keeping an equal name or a longer shared prefix
- Confidence
- verified, proof one
- 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 2
Callees 2
Calls and jumps by a bare address, from tables/calls.tsv.