WoW:API GetBattlefieldWinner: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(Forgot to change some things when changing this to another format)
m (Move page script moved page API GetBattlefieldWinner to API GetBattlefieldWinner without leaving a redirect)
 
(5 intermediate revisions by 4 users not shown)
Line 1: Line 1:
Get the winner of the battleground
Get the winner of the battlefield


  battlefieldWinner = GetBattlefieldWinner()
  winner = GetBattlefieldWinner()


== Parameters ==
== Parameters ==
=== Arguments ===
None
=== Returns ===
=== Returns ===
:battlefieldWinner
:winner


:;battlefieldWinner: Integer - A code indicating the battleground winner. (nil for no one; 0 for Horde; 1 for Alliance)
:;winner: Integer - Faction/team that has won the battlefield. Results are: nil if nobody has won, 0 for Horde and 1 for Alliance in a battleground, 0 for Green Team and 1 for Yellow in an arena.


==Details==
==Details==


: Gets the winner of the current battleground that the player is inside.
: Gets the winner of the battleground that the player is currently in.


----
__NOTOC__
{{wowapi}}
{{wowapi}}

Latest revision as of 04:45, 15 August 2023

Get the winner of the battlefield

winner = GetBattlefieldWinner()

Parameters[edit]

Returns[edit]

winner
winner
Integer - Faction/team that has won the battlefield. Results are: nil if nobody has won, 0 for Horde and 1 for Alliance in a battleground, 0 for Green Team and 1 for Yellow in an arena.

Details[edit]

Gets the winner of the battleground that the player is currently in.

WoW API < GetBattlefieldWinner