Changes the focus unitID to refer to a new unit


See also Targeting functions.

Signature:

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

Arguments:

  • 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