public static class Battlegrounds
Thetype exposes the following members.
Returns the time since the battleground started.
Gets the battlefield start time.
Returns a list of battleground statuses.
Returns the current battleground the local player is inside.
Returns true if the battlefield has ended.
Returns true if you are inside a battleground.
Returns a list of all visible landmarks.
Gets the number of vehicles currently in this bg.
Gets the guids of all the vehicles in this bg.
Gets the vehicles of this battleground.
Gets a value indicating whether a BG queue has popped, and the game is waiting for confirmation to enter.
Returns the battlefield winner.
Accepts or declines a battlefield port.
Accept battleground confirmation.
Get the battlefields 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.
Returns the first found index of the battlegournd with x status.
Returns the current battleground you are in.
Returns the profile name for
Returns detailed information on the battlegrounds in the que.
Gets a queued battleground wait time in miliseconds, or 0 if the battleground is not queued.
Get's the current battleground status.
Query if 'type' is queued for battleground.
Join's the que for a battlefield.
Leaves the current battlefield the player is inside, pre-2.0.1 this would only leave the battlefield if it had been won or lost this was changed in 2.0.1 to exit you from the battlefield regardless if it was finished or not and will give you deserter.