PlayerLocation:CreateFromBattlefieldScoreIndex()

From Warcraft Wiki
Jump to navigation Jump to search
This function is implemented in :CreateFromBattlefieldScoreIndex FrameXML/ObjectAPI/PlayerLocation.lua.

Identifies a battleground participant.

location = PlayerLocation:CreateFromBattlefieldScoreIndex(battlefieldScoreIndex)
location:SetBattlefieldScoreIndex(battlefieldScoreIndex)

Arguments

battlefieldScoreIndex
number - The player's position on the Battleground roster / score window based on the match-making order.

Returns

location
table - New PlayerLocationMixin.

Details

  • Use the first function to create a new table pointing to the player, or the second to reassign an existing table to that player.

Patch changes

External links

References

 
  1. ^ 2018-07-16, PlayerLocation.lua, version 8.0.1.27101, archived at Townlong-Yak