Script::GetNumBattlefieldPositions
function · ui · primitive
- Address
0x4abf00· 135 bytes, up to0x4abf86- Signature
int __fastcall (lua_State *L)- Meaning
- Pushes the count of stored teammates outside the player's party and raid
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- ui/worldmapmarkers#teammate-positions
Finding: Teammate positions in ui: world map arrows and battleground markers
GetNumBattlefieldPositions() pushes the number of stored teammates that are not the active player, not one of the four party slots and not on the raid roster. GetBattlefieldPosition(index) pushes three values for the index-th of those (1-based, ftol): the map fractions u and v and the name, or 0, 0 and nil for an index of 0 or less or past the end.
The position is the live object's when a player object exists for the GUID, else the packet's; 0x4a7360 normalises it under the map id of the active queue slot (0 with no slot). The name is the name cache's, Name-Realm when the realm is not empty, and nil on a miss, which registers 0x4ac190.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 3
- IsRaidMember ui
- CGPartyInfo::IsMember ui
- lua_pushnumber lua
Calls and jumps by a bare address, from tables/calls.tsv.