Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
Returns true if the player is in a group.
inGroup = IsInGroup([groupType])
Arguments[]
- groupType
- number? - If omitted, checks if you're in any type of group.
- If omitted, defaults to
INSTANCE
if applicable,HOME
otherwise.
- If omitted, defaults to
Value | Enum | Description |
---|---|---|
1 | LE_PARTY_CATEGORY_HOME | Home-realm group, i.e. a manually created group. |
2 | LE_PARTY_CATEGORY_INSTANCE | Instance-specific temporary group, e.g. Battlegrounds, Dungeon Finder |
Returns[]
- inGroup
- boolean - Returns true if the player is in the
groupType
group if specified, or in any type of group.
Details[]
It is possible for a character to belong to a home group at the same time they are in an instance group (LFR or Flex). To distinguish between a party and a raid, use IsInRaid().
Patch changes[]
Patch 5.0.4 (2012-08-28): Added groupType
argument.