UnitIsPlayer

From Wowpedia
Revision as of 12:07, 29 October 2014 by User-6548696 (talk | contribs) (Change return values)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Checks if a specified unit is a player.

isTrue = UnitIsPlayer(unit)

Arguments

unit
String - UnitId of the unit to check.

Returns

isTrue 
Boolean - true if the unit is a player, false otherwise.