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.
See also Battlefield functions.
index- Index of a battleground or arena type for which the player is queued (
1to accept the offered teleport;
nilto exit the queue or leave the battleground/arena match in progress (