WoW:API TargetUnit: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
No edit summary
Line 26: Line 26:
;''Description''
;''Description''


: Selects the specified id as the current target. The id can be any of <tt>"player"</tt>, <tt>"party1"</tt>, <tt>"party2"</tt>, <tt>"party3"</tt> or <tt>"party4"</tt>.  
: Selects the specified id as the current target. The id can be any of <tt>"player"</tt>, <tt>"pet"</tt>, <tt>"party1"</tt>, <tt>"party2"</tt>, <tt>"party3"</tt> or <tt>"party4"</tt>.  


: 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.


: <tt>"pet"</tt> should work to, and will (if it works) target the players pet --[[User:Sarf|Sarf]]
: The <tt>"party*"</tt> ids refer to the corresponding party members.
 
: The <tt>"pet"</tt> id should work too, and will (if it works) target the players pet --[[User:Sarf|Sarf]]


{{Template:WoW API}}
{{Template:WoW API}}

Revision as of 16:43, 19 November 2004

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", "pet", "party1", "party2", "party3" or "party4".
The id "player" refers to the character in use.
The "party*" ids refer to the corresponding party members.
The "pet" id should work too, and will (if it works) target the players pet --Sarf

Template:WoW API