WoW API: UnitIsPlayer

Revision as of 04:47, 15 August 2023 by Move page script (talk | contribs) (Move page script moved page API UnitIsPlayer to API UnitIsPlayer without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

WoW API < UnitIsPlayer

UnitIsPlayer(UnitId)

Determines if the unit is a player. It is important to note that it returns nil rather than false, nil is treated like false for most operations but it is *not* a proper boolean.


Arguments
UnitId

Returns
True/False

Example
if (UnitIsPlayer(UnitId)) then
   --Do something here
else
   --Do something else
end

Seems like in 6.0.3 it returns True/False