m
Move page script moved page API GetPartyLeaderIndex to WoW:API GetPartyLeaderIndex without leaving a redirect
(upgraded deprecated template) |
m (Move page script moved page API GetPartyLeaderIndex to WoW:API GetPartyLeaderIndex without leaving a redirect) |
||
| (5 intermediate revisions by 5 users not shown) | |||
| Line 1: | Line 1: | ||
{{wowapi}} | {{wowapi}} | ||
Returns the index of the current party leader (1-4). | Returns the index of the current party leader (1-4). | ||
| Line 6: | Line 5: | ||
partyLeaderIndex = GetPartyLeaderIndex(); | partyLeaderIndex = GetPartyLeaderIndex(); | ||
''Note:'' Party members 1-4 does not include yourself. Use IsPartyLeader() to test if you are the party leader. | |||
---- | ---- | ||
| Line 19: | Line 18: | ||
:;partyLeaderIndex : The index of the current party leader (1-4). | :;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. | |||
: | |||
: | |||
---- | ---- | ||
| Line 29: | 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]] | |||