API:TargetUnit

Selects unit as the new target.

TargetUnit(unit);

Parameter

 * unit
 * String - the UnitId (e.g. "target", "party1", "raid1", "targettarget" etc..)
 * If unit is "" or nil then target selection is cleared

See also: API:TargetNearestEnemy