WoW:API AssistUnit: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
mNo edit summary
m (Move page script moved page API AssistUnit to API AssistUnit without leaving a redirect)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<center>'''AssistUnit''' ''-Documentation by [[user:LumpN|LumpN]]-''</center>
{{wowapi}}
{{protectedapi|2.0.1|For alternatives, try [[API_SecureTemplates|Secure Templates]] or /assist}}


Selects the target of the specified id as the current target.  
Selects the target of the specified id as the current target.  
Line 27: Line 28:


*Selects the target of the specified id as the current target. One can use any of the defined [[API TYPE UnitId|UnitId]] values. One can also use AssistUnit("[[API TYPE UnitId|unit]]"pet) to assist the pet.
*Selects the target of the specified id as the current target. One can use any of the defined [[API TYPE UnitId|UnitId]] values. One can also use AssistUnit("[[API TYPE UnitId|unit]]"pet) to assist the pet.
*If the players target was changed by a [[World of Warcraft API#Targetting Functions|Targetting Function]] it is possible to restore the original target by assisting the player.  
*If the players target was changed by a [[World of Warcraft API#Targetting Functions|Targetting Function]] it is possible to restore the original target by assisting the player.
 
{{Template:WoW API}}
[[Category:API Functions|AssistUnit]]
[[Category:API Activity Functions|AssistUnit]]
[[Category:API Unit Functions|AssistUnit]]

Latest revision as of 04:45, 15 August 2023

WoW API < AssistUnit

Selects the target of the specified id as the current target.

AssistUnit("unit");

Arguments
("unit")
unit
String - The UnitId to select as a target.

Returns
nil

Example
AssistUnit("player");
Result

Description
  • Selects the target of the specified id as the current target. One can use any of the defined UnitId values. One can also use AssistUnit("unit"pet) to assist the pet.
  • If the players target was changed by a Targetting Function it is possible to restore the original target by assisting the player.