API UnitIsPlayer

From Wowpedia
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.