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 arenanone
- Not inside an instanceparty
- 5-man instancepvp
- Player versus player battlegroundraid
- Raid instance