→ WoW API
|This is no longer a part of the World of Warcraft API.|
Returns number of party members.
partyMembers = GetNumPartyMembers()
Returns[edit | edit source]
- Number - The number of party members, excluding the player (0 to 4).
Example[edit | edit source]
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[edit | edit source]
- While in a battleground, this function returns information about your battleground party. You may retrieve information about your non-battleground party using GetRealNumPartyMembers().
- While in a raid, you are also in a party. You might be the only person in your raidparty, so this function could still return 0.
See Also[edit | edit source]
Community content is available under CC-BY-SA unless otherwise noted.