Open main menu
Wowpedia
Search
UnitIsPlayer
Read in another language
Watch this page
Edit
→
API by Alphabet
→
API Overview
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.