WoW:API IsInInstance: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{Stub/API}} | |||
{{wowapi}} __NOTOC__ | {{wowapi}} __NOTOC__ | ||
Line 22: | Line 23: | ||
: Needs more testing and documentation. | : Needs more testing and documentation. | ||
Revision as of 01:17, 27 December 2006
← WoW API < IsInInstance
Returns 1 if the player is in an instance and the type of instance.
Template:Code/Begin
inInstance, instanceType = IsInInstance()
Template:Code/End
Parameters
Returns
- inInstance, instanceType
- inInstance
- Boolean - nil or 1
- instanceType
- String - see below
Details
- instanceType is normally "none" when outside of an instance or inside an Arena (in 2.0.1) but is "pvp" when inside a battleground and "party" when inside a 5-man instance, have not tested with raid instances yet.
- Needs more testing and documentation.