WoW:API GetNumBattlefieldPositions: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(Documented from Blizzard_BattlefieldMinimap.lua)
 
m (Move page script moved page API GetNumBattlefieldPositions to API GetNumBattlefieldPositions without leaving a redirect)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{wowapi}}
Returns the number of players in the battleground that are not in your raid.
Returns the number of players in the battleground that are not in your raid.


Line 15: Line 16:
;''Comments''
;''Comments''


Returns 0 until [[API RequestBattlefieldPositions|RequestBattlefieldPositions()]] was called (returns even after call of RequestBattlefieldPositions() 0? Seems bugged, use [[API GetPlayerMapPosition|GetPlayerMapPosition(unit)]] instead).
You can use [[API GetBattlefieldPosition|GetBattlefieldPosition(index)]] to retrieve the locations and names of the players.
You can use [[API GetBattlefieldPosition|GetBattlefieldPosition(index)]] to retrieve the locations and names of the players.
----
{{Template:WoW API}}
[[Category:API Functions|GetNumBattlefieldPositions]]
[[Category:API Battlefield Functions|GetNumBattlefieldPositions]]

Latest revision as of 04:46, 15 August 2023

WoW API < GetNumBattlefieldPositions

Returns the number of players in the battleground that are not in your raid.

count = GetNumBattlefieldPositions()

Arguments
(none)

Returns
count
Number of players in the battleground not in your raid

Comments

Returns 0 until RequestBattlefieldPositions() was called (returns even after call of RequestBattlefieldPositions() 0? Seems bugged, use GetPlayerMapPosition(unit) instead). You can use GetBattlefieldPosition(index) to retrieve the locations and names of the players.