UnitIsPlayer

From Warcraft Wiki
Jump to navigation Jump to search

Returns true if the unit is a player character.

isPlayer = UnitIsPlayer(unit)

Arguments

unit
string : UnitId

Returns

isPlayer
boolean - true if the unit is a player, false otherwise.