WoW:API IsInInstance: Difference between revisions
Jump to navigation
Jump to search
(Added "arena" return) |
(Updated to match the current API boilerplate.) |
||
Line 1: | Line 1: | ||
{{wowapi}} __NOTOC__ | |||
{{wowapi}} | |||
Checks whether the player is in an instance and the type of instance. | |||
inInstance, instanceType = IsInInstance() | inInstance, instanceType = IsInInstance() | ||
== | == Arguments == | ||
:none | |||
== Returns == | |||
:inInstance, instanceType | :inInstance, instanceType | ||
:;inInstance : Boolean - | :;inInstance : [[Boolean]] - Whether the player is in an instance | ||
:;instanceType : String - | :;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 | ||
:: "pvp" when in a battleground | |||
:: "arena" when in an arena | |||
:: "party" when in a 5-man instance | |||
:: "raid" when in a raid instance | |||
Revision as of 18:27, 25 June 2007
← WoW API < IsInInstance
Checks whether the player is in an instance and the type of instance.
inInstance, instanceType = IsInInstance()
Arguments
- none
Returns
- inInstance, instanceType
- inInstance
- Boolean - Whether the player is in an instance
- 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