WoW:API GetBattlefieldWinner: Difference between revisions
Jump to navigation
Jump to search
GetBattlefieldWinner() -Documentation by Klishu-
No edit summary |
(→Returns: Returns nil, 0 or 1 not nil, 1, 2) |
||
Line 16: | Line 16: | ||
:winnerCode | :winnerCode | ||
:;winnerCode : integer - A code indicating the battleground winner. (nil for no one; 1 for Alliance | :;winnerCode : integer - A code indicating the battleground winner. (nil for no one; 0 for Horde; 1 for Alliance) | ||
==Details== | ==Details== | ||
<!-- Details not appropriate for the main description can go here --> | <!-- Details not appropriate for the main description can go here --> | ||
: Returns an | : Returns an interger value which can be nil, 0 or 1 indicating the winner of the current battleground the player is in. If the battleground isn't finished or they aren't inside one nil is returned. | ||
---- | ---- | ||
__NOTOC__ | __NOTOC__ | ||
{{Template:WoW API}} | {{Template:WoW API}} |
Revision as of 04:32, 12 July 2006
Returns an integer value based on the winner of the Battleground.
winnerCode = GetBattlefieldWinner()
Parameters
Arguments
None
Returns
- winnerCode
- winnerCode
- integer - A code indicating the battleground winner. (nil for no one; 0 for Horde; 1 for Alliance)
Details
- Returns an interger value which can be nil, 0 or 1 indicating the winner of the current battleground the player is in. If the battleground isn't finished or they aren't inside one nil is returned.