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)
Line 15: Line 15:


: Gets the winner of the current battleground that the player is inside.
: Gets the winner of the current battleground that the player is inside.
: Within the scope of arena winners, the integer returned is the index of the arena team. Read the documentation for [[API GetBattlefieldTeamInfo|GetBattlefieldTeamInfo]] for more information. [[User:Salanex|Salanex]] 00:00, 16 February 2007 (EST)


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

Revision as of 05:03, 16 February 2007

Get the winner of the battleground

battlefieldWinner = GetBattlefieldWinner()

Parameters

Arguments

None

Returns

battlefieldWinner
battlefieldWinner
Integer - A code indicating the battleground winner. (nil for no one; 0 for Horde; 1 for Alliance)

Details

Gets the winner of the current battleground that the player is inside.
Within the scope of arena winners, the integer returned is the index of the arena team. Read the documentation for GetBattlefieldTeamInfo for more information. Salanex 00:00, 16 February 2007 (EST)

WoW API < GetBattlefieldWinner