WoW:API GetNumPartyMembers: Difference between revisions
Jump to navigation
Jump to search
(→Notes) |
No edit summary |
||
Line 1: | Line 1: | ||
{{wowapi}} __NOTOC__ | {{wowapi}} __NOTOC__ | ||
{{removedapi|5.0.4|Instead use [[API GetNumGroupMembers|GetNumGroupMembers]] or [[API GetNumSubgroupMembers|GetNumSubgroupMembers]]}} | |||
Returns number of party members. | Returns number of party members. | ||
partyMembers = GetNumPartyMembers() | partyMembers = GetNumPartyMembers() | ||
Line 15: | Line 17: | ||
==See Also== | ==See Also== | ||
* {{api| | * {{api|GetNumGroupMembers}} | ||
* {{api| | * {{api|GetNumSubgroupMembers}} | ||
* {{api|GetPartyMember}} | * {{api|GetPartyMember}} | ||
* {{api|GetNumRaidMembers}} (Removed 5.0.4) | |||
* {{api|GetRealNumPartyMembers}} (Removed 5.0.4) |
Revision as of 17:55, 25 September 2012
← WoW API < GetNumPartyMembers
This is no longer a part of the World of Warcraft API.
|
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().
- 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
- GetNumRaidMembers (Removed 5.0.4)
- GetRealNumPartyMembers (Removed 5.0.4)