benilla-re systems structs docs

Script::GetNumBattlefieldFlagPositions

function · ui · primitive

Address
0x4ac1c0 · 61 bytes, up to 0x4ac1fc
Signature
int __fastcall (lua_State *L)
Meaning
Pushes 1 when a flag carrier is known, else 0
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/worldmapmarkers#the-flag-carrier

Finding: The flag carrier in ui: world map arrows and battleground markers

GetNumBattlefieldFlagPositions() pushes 1 when the carrier GUID is nonzero, else 0. GetBattlefieldFlagPosition(index) takes only index 1 and pushes the map fractions u and v and a token. The position is the carrier's live position or its group record's (0x4a7870) when either fraction is nonzero, else the packet's floats under the active slot's map id. The token is HordeFlag for an Alliance player and AllianceFlag for a Horde player, nil with no carrier, so it names the flag the carrier holds, not the carrier's side.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 1

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