Returns whether a unit is controlled by a player


See also Unit functions.

Signature:

isPlayer = UnitPlayerControlled("unit")

Arguments:

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

Returns:

  • isPlayer - 1 if the unit is controlled by a player; otherwise nil (1nil)