Fandom

WoWWiki

API GetPartyMember

104,637pages on
this wiki
Add New Page
Talk2 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

WoW API < GetPartyMember

Returns 1 if the specified party member exists, nil otherwise.

memberExists = GetPartyMember(index);

ParametersEdit

ArgumentsEdit

index 
Number - Which party member to query (1-4).

ReturnsEdit

memberExists
Flag - If the specified party member exists, returns 1, otherwise nil.

ExampleEdit

memberCount = 0
for groupindex = 1,MAX_PARTY_MEMBERS do
 if (GetPartyMember(groupindex)) then
  memberCount = memberCount + 1
 end
end

ResultEdit

Will count the number of members in the party (not the best way to do that but it's a reasonable example).

Also on Fandom

Random Wiki