WoW:API TargetUnit

From AddOn Studio
Revision as of 14:55, 19 November 2004 by WoWWiki>Danboo (added <tt> formatting to id strings)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
TargetUnit -Documentation by danboo-

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.

Template:WoW API