Returns whether a unit is a player unit (not an NPC)


See also Unit functions.

Signature:

isPlayer = UnitIsPlayer("unit")

Arguments:

  • unit - A unit to query (string, unitID)

Returns:

  • isPlayer - true if the unit is a player unit; otherwise false (boolean)