m
Move page script moved page API AcceptBattlefieldPort to WoW:API AcceptBattlefieldPort without leaving a redirect
(revert last change) |
m (Move page script moved page API AcceptBattlefieldPort to WoW:API AcceptBattlefieldPort without leaving a redirect) |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 10: | Line 10: | ||
=== Details === | === Details === | ||
Passing 0 or nil as an accept argument will cause you to leave the queue for the battlefield, if you are inside a battlefield you will leave it regardless if it's ended or not. | Passing 0 or nil as an accept argument will cause you to leave the queue for the battlefield, if you are inside a battlefield you will leave it regardless if it's ended or not. | ||
Requires a hardware event if the second parameter is true or 1 to enter a battlefield. For leaving the battlefield no hardware event is required. | |||
== Example == | == Example == | ||
| Line 20: | Line 22: | ||
end | end | ||
===Result=== | ===Result=== | ||
If the | If the preceding code is called when the UPDATE_BATTLEFIELD_STATUS event is fired, it will automatically join a battleground when it becomes available. | ||