WoW:API UnitIsPartyLeader: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
 
m (Move page script moved page API UnitIsPartyLeader to API UnitIsPartyLeader without leaving a redirect)
 
(No difference)

Latest revision as of 04:47, 15 August 2023

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")

Result[edit]

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

Details[edit]

Seems to work on players outside of their party.