WoW:API TargetUnit: Difference between revisions
Jump to navigation
Jump to search
TargetUnit -Documentation by danboo-
(added <tt> formatting to id strings) |
No edit summary |
||
| Line 29: | Line 29: | ||
: The id <tt>"player"</tt> refers to the character in use, while the <tt>"party*"</tt> ids refer to the corresponding party members. | : The id <tt>"player"</tt> refers to the character in use, while the <tt>"party*"</tt> ids refer to the corresponding party members. | ||
: <tt>"pet"</tt> should work to, and will (if it works) target the players pet --[[User:Sarf|Sarf]] | |||
{{Template:WoW API}} | {{Template:WoW API}} | ||
Revision as of 16:07, 19 November 2004
Selects the specified id as the current target.
TargetUnit(id);
- Arguments
- (String id)
- id
- the identifier of the target to select
- Returns
- nil
- Example
TargetUnit("player");
- Result
- Description
- Selects the specified id as the current target. The id can be any of "player", "party1", "party2", "party3" or "party4".
- The id "player" refers to the character in use, while the "party*" ids refer to the corresponding party members.
- "pet" should work to, and will (if it works) target the players pet --Sarf