API UnitIsPlayer

From Wowpedia
Revision as of 18:30, 10 April 2006 by Azxiana (talk | contribs)
Jump to: navigation, search


UnitIsPlayer(UnitId)

Determines if the unit is a player.


Arguments
UnitId

Returns
True/False

Example
if (UnitIsPlayer(UnitId)) then
   --Do something here
elseif (UnitIsPlayer(UnitId) ~= nil) then
   --Do something here
end

Template:WoW API