WoW API: GetNumPartyMembers
Jump to navigation
Jump to search
← WoW API < GetNumPartyMembers
Returns number of party members.
partyMembers = GetNumPartyMembers()
Returns
- partyMembers
- Number - The number of party members, excluding the player (0 to 4).
Example
The snippet below adds a message stating the number of people in the player's current party to the default chat frame.
print("There are " .. GetNumPartyMembers() .. " other people in your party.");
Notes
- While in a battleground, this function returns information about your battleground party. You may retrieve information about your non-battleground party using GetRealNumPartyMembers().