IsInGroup
Jump to navigation
Jump to search
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.