WoW:API TargetUnit

Revision as of 19:28, 28 December 2004 by WoWWiki>Flickering (Added other category.)
TargetUnit -Documentation by danboo-

Selects the specified id as the current target.

TargetUnit("unit");

Arguments
("unit")
unit
String - The UnitId to select as a target.

Returns
nil

Example
TargetUnit("player");
Result

Description
Selects the specified id as the current target. One can use any of the defined UnitId values. One can also use the TargetUnitsPet("unit") function to target a pet.

Template:WoW API