WoW API: IsInInstance

Revision as of 00:10, 17 June 2007 by WoWWiki>Gnarfoz (Added "arena" return)

WoW API < IsInInstance

Returns 1 if the player is in an instance and the type of instance.

inInstance, instanceType = IsInInstance()

Parameters

Returns

inInstance, instanceType
inInstance
Boolean - nil or 1
instanceType
String - see below


Details

instanceType
"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
Needs more testing and documentation.