Changes the focus unitID to refer to a new unit

See also Targeting functions.


FocusUnit("unit") or FocusUnit("name")


  • unit - A unit to focus (string, unitID)
  • name - The name of a unit to focus; only valid for player, pet, and party/raid members (string)
This function is protected and can only be called by the Blizzard user interface