Tbdsamman56606@legacy41575742 (talk | contribs) No edit summary |
mNo edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
{{wowapi}} |
{{wowapi}} |
||
− | <center>'''GetPartyLeaderIndex''' ''-Documentation by Mikk-''</center> |
||
Returns the index of the current party leader (1-4). |
Returns the index of the current party leader (1-4). |
||
Line 27: | Line 26: | ||
: Returns the index of the current party leader (1-4). If the leader is in another party in a raid group, the function returns 0 (not nil). |
: Returns the index of the current party leader (1-4). If the leader is in another party in a raid group, the function returns 0 (not nil). |
||
− | + | ==See also== |
|
− | + | * [[API GetNumPartyMembers|GetNumPartyMembers]] |
|
− | + | * [[API IsPartyLeader|IsPartyLeader]] |
Revision as of 19:58, 28 January 2008
Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
Returns the index of the current party leader (1-4).
partyLeaderIndex = GetPartyLeaderIndex();
Note: Party members 1-4 does not include yourself. Use IsPartyLeader() to test if you yourself is the party leader.
- Arguments
- None
- Returns
- (Number partyLeaderIndex)
- partyLeaderIndex
- The index of the current party leader (1-4).
- Returns 0 if you are not in a party.
- Also returns 0 if you are the leader.
- Description
- Returns the index of the current party leader (1-4). If the leader is in another party in a raid group, the function returns 0 (not nil).