Open main menu
Home
Random
Log in
Settings
About AddOn Studio
Disclaimers
AddOn Studio
Search
Editing
WoW:API GetNumSubgroupMembers
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{wowapi}} __NOTOC__ Returns number of party members. subGroupMembers = GetNumSubgroupMembers() == Arguments == ;groupType (optional) : ({{api|partyCategoryType|t=t}}) the type of group. :* LE_PARTY_CATEGORY_HOME - get the count for a local or manual group. (default) :* LE_PARTY_CATEGORY_INSTANCE - get the count for a player's automatic group. (default in an instance) == Returns == ;subGroupMembers : Number - The number of sub-group 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 " .. GetNumSubgroupMembers() .. " other people in your raid party."); == Notes == * While in a battleground, this function returns information about your battleground party. You may no longer retrieve information about your non-battleground party using {{api|GetRealNumPartyMembers}}() as of patch 5.0.4. * 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 == * {{api|GetNumGroupMembers}} (Added in 5.0.4) * {{api|GetPartyMember}} * {{api|GetRealNumPartyMembers}} (Removed in 5.0.4) * {{api|GetNumRaidMembers}} (Removed in 5.0.4)
Summary:
Please note that all contributions to AddOn Studio are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
AddOn Studio Wiki:Copyrights
for details).
Submissions must be written by you, or copied from a public domain or similar free resource (see
AddOn Studio Wiki:Copyrights
for details).
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Api
(
edit
)
Template:Apinav
(
edit
)
Template:Editlink
(
edit
)
Template:Tocright
(
edit
)
Template:Wowapi
(
edit
)