WoW:API GetPartyLeaderIndex: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
 
m (Move page script moved page API GetPartyLeaderIndex to API GetPartyLeaderIndex without leaving a redirect)
 
(7 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<center>'''GetPartyLeaderIndex''' ''-Documentation by Mikk-''</center>
{{wowapi}}


Returns the index of the current party leader (1-4).
Returns the index of the current party leader (1-4).
Line 5: Line 5:
   partyLeaderIndex = GetPartyLeaderIndex();
   partyLeaderIndex = GetPartyLeaderIndex();


<i>Note:</i> Party members 1-4 does not include yourself. Use IsPartyLeader() to test if you yourself is the party leader.
''Note:'' Party members 1-4 does not include yourself. Use IsPartyLeader() to test if you are the party leader.


----
----
Line 18: 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.
;''Cases not yet tested''
:: Also returns 0 if you are the leader.
:- If you are not in a party (suspect nil)
:- If you yourself is the party leader (suspect nil)
:- If the leader is in another party in a raid group (suspect nil)


----
----
;''Description''
;''Description''


: Returns the index of the current party leader (1-4).
: 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]]


==See also==


----
* [[API GetNumPartyMembers|GetNumPartyMembers]]
{{Template:WoW API}}
* [[API IsPartyLeader|IsPartyLeader]]

Latest revision as of 04:46, 15 August 2023

WoW API < GetPartyLeaderIndex

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 are 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).

See also[edit]