UnitIsPlayer

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.
Community content is available under CC BY-SA 3.0 unless otherwise noted.