Wikia

WoWWiki

API GetPartyMember

Talk2
101,561pages on
this wiki
Revision as of 22:36, December 23, 2006 by Starlightblunder (Talk | contribs)

(diff) ←Older revision | Latest revision (diff) | Newer revision → (diff)
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).

Around Wikia's network

Random Wiki