Open main menu
Home
Random
Log in
Settings
About AddOn Studio
Disclaimers
AddOn Studio
Search
Editing
WoW:API UnitIsGroupLeader
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{wowapi}} __NOTOC__ Returns true if the unit is leader party or raid group, false otherwise. isTrue = UnitIsGroupLeader("unit"[, groupType]) == Arguments == ; unit : ([[unitId]]) Unit that should be checked ; groupType (optional) : ({{api|partyCategoryType|t=t}}) The type of group. :* LE_PARTY_CATEGORY_HOME - get the count for a local or manual group. (default) :* LE_PARTY_CATEGORY_INSTANCE - get the count for a player's automatic group. (default in an instance) == Returns == ; isTrue : (boolean) true or false === Examples === Call local targetIsLeader = UnitIsGroupLeader("target") Result targetIsLeader == true - If your target is the leader of their group targetIsLeader == false - If your target is not the leader of their group == Notes == * Seems to work on players outside of their group. * As of 5.0.4, passing an unknown unitName, will cause UnitIsGroupLeader to return the name, which may be a bug. == See == * {{api|UnitIsGroupAssistant}}
Summary:
Please note that all contributions to AddOn Studio are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
AddOn Studio Wiki:Copyrights
for details).
Submissions must be written by you, or copied from a public domain or similar free resource (see
AddOn Studio Wiki:Copyrights
for details).
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Api
(
edit
)
Template:Apinav
(
edit
)
Template:Editlink
(
edit
)
Template:Tocright
(
edit
)
Template:Wowapi
(
edit
)