WoW API: RequestBattlegroundInstanceInfo
← WoW API < RequestBattlegroundInstanceInfo
Requests information about the available instances of a particular battleground.
RequestBattlegroundInstanceInfo(index);
ArgumentsEdit
- index
- Number - Index of the battleground type to request instance information for; valid indices start from 1 and go up to GetNumBattlegroundTypes().
Triggers eventsEdit
- PVPQUEUE_ANYWHERE_SHOW is fired when the requested information becomes available.
NotesEdit
- Calling JoinBattlefield after calling this function, but before {api|t=e|PVPQUEUE_ANYWHERE_SHOW}}, will fail silently; you must wait for the instance list to become available before you can queue for an instance.