WoW:API TargetUnit: Difference between revisions
Jump to navigation
Jump to search
TargetUnit -Documentation by danboo-
No edit summary |
m (Added other category.) |
||
| Line 3: | Line 3: | ||
Selects the specified id as the current target. | Selects the specified id as the current target. | ||
TargetUnit( | TargetUnit("unit"); | ||
---- | ---- | ||
;''Arguments'' | ;''Arguments'' | ||
:( | :("unit") | ||
:; | :;unit : String - The [[API TYPE UnitId|UnitId]] to select as a target. | ||
---- | ---- | ||
| Line 26: | Line 26: | ||
;''Description'' | ;''Description'' | ||
: Selects the specified id as the current target. | : Selects the specified id as the current target. One can use any of the defined [[API TYPE UnitId|UnitId]] values. One can also use the [[API TargetUnitsPet|TargetUnitsPet("unit")]] function to target a pet. | ||
{{Template:WoW API}} | {{Template:WoW API}} | ||
[[Category:API Targetting Functions|TargetUnit]] | |||
[[Category:API Unit Functions|TargetUnit]] | |||
Revision as of 19:28, 28 December 2004
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.