WoW:API TargetUnit
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.