Accepts the offered teleport to a battleground/arena or leaves the battleground/arena or queue.
Accepts the offered teleport to a battleground/arena or leaves the battleground/arena or queue. This function requires a hardware event when used to accept a teleport; it can be called without a hardware event for leaving a battleground/arena or its queue.
Signature:
Code
AcceptBattlefieldPort(index, accept)
Arguments:
index - Index of a battleground or arena type for which the player is queued (number)
accept - 1 to accept the offered teleport; nil to exit the queue or leave the battleground/arena match in progress (1nil)
This function requires a key or mouse press in order to be used, but may not be protected.