Wikia

WoWWiki

Watchlist Recent changes

API IsInInstance

Main Menue



Checks whether the player is in an instance and the type of instance.

inInstance, instanceType = IsInInstance()

Returns Edit

inInstance 
Boolean - Whether the player is in an instance; nil otherwise.
instanceType 
String - 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

Details Edit

This functon returns correct results immediately upon PLAYER_ENTERING_WORLD.

Pages on WoWWiki

94,130pages on
this wiki
Advertisement | Your ad here

Latest Photos

Add a Photo
55,594photos on this wiki
See more >

Recent Wiki Activity

See more >

Recent Questions

Around Wikia's network

Random Wiki