Lore archive · Warcraft Wiki, 2023 dump
API IsInInstance
Last wiki revision 2022-07-21
Returns true if the player is in an instance, and the type of instance. inInstance, instanceType = IsInInstance
- inInstance: - Whether the player is in an instance; nil otherwise.
- instanceType: - The instance type:
- "none" when outside an instance
- "pvp" when in a battleground
- "arena" when in an arena
- "party" when in a 5-man instance
- "raid" when in a raid instance
- "scenario" when in a scenario
This functon returns correct results immediately upon PLAYER_ENTERING_WORLD.
Source
https://warcraft.wiki.gg/wiki/API_IsInInstance · retrieved 2023-11-13 · CC BY-SA 4.0
Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.
This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.