WoW API: UnitIsPlayer
Jump to navigation
Jump to search
← 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
- Returns
- True/nil
- Example
if (UnitIsPlayer(UnitId)) then --Do something here elseif (UnitIsPlayer(UnitId) ~= nil) then --Do something here end