Script::GetBattlefieldFlagPosition
function · ui · primitive
- Address
0x4ac230· 327 bytes, up to0x4ac376- Signature
int __fastcall (lua_State *L)- Meaning
- Pushes map fractions and the flag token of the carrier for index 1
- 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 10
- __ftol crt
- ProjectWorldPosition ui
- GetUnitMapPosition ui
- GetFlagToken ui
- lua_isnumber lua
- lua_tonumber lua
- lua_pushnil lua
- lua_pushnumber lua
- lua_pushstring lua
- luaL_error lua
Calls and jumps by a bare address, from tables/calls.tsv.