Returns whether the player is in an instance (and its type if applicable)


See also Instance functions, Player information functions.

Signature:

isInstance, instanceType = IsInInstance()

Returns:

  • isInstance - true if the player is in an instance, otherwise false (boolean)
  • instanceType - The type of instance the player is in (string)
    • arena - Player versus player arena
    • none - Not inside an instance
    • party - 5-man instance
    • pvp - Player versus player battleground
    • raid - Raid instance