Wikia

WoWWiki

API UnitIsPartyLeader

Talk0
102,252pages on
this wiki
WoW API < UnitIsPartyLeader

Returns 1 if the unit is party leader, nil otherwise.

isTrue = UnitIsPartyLeader("arg1")

Parameters Edit

Arguments Edit

arg1 
String - Unit who should be checked

Returns Edit

isTrue 
1 or nil

Example Edit

local TargetIsLeader = UnitIsPartyLeader("target")

ResultEdit

TargetIsLeader = 1   - If your target is leader of their party
TargetIsLeader = nil - If your target is not leader of their party

DetailsEdit

Seems to work on players outside of their party.

Around Wikia's network

Random Wiki