benilla-re systems structs docs

s_nearbyData

global · ui

Address
0xb4b430 · 4 bytes, up to 0xb4b433
Type
void *
Meaning
Points to the nearby list: GUID, squared distance and in-front flag per record
Confidence
verified, proof one
Finding
ui/targeting#cycling-through-nearby-units

Finding: Cycling through nearby units in ui: selecting a target

TargetNearestEnemy([reverse]), TargetNearestFriend, TargetNearestPartyMember and TargetNearestRaidMember call 0x493f60(reverse, kind) with kind 1 to 4. The function builds, once per three seconds of use, a list of the units that pass the kind's filter and a distance gate, sorts it, and selects the next entry after the current target (the previous one for reverse), wrapping at the end; a list older than one second is rebuilt on wrapping. It does nothing without the active player or when the protected gate for kind 4 fails.

The derivation is in the doc.