UnitIsPlayer

From Wowpedia
Revision as of 17:33, 6 January 2007 by Hobinbot@legacy41545296 (talk | contribs) (upgraded deprecated template)
Jump to: navigation, search
Game Flavors
Links
Patch
Added in 1.1.0 / 1.13.2
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