m
→Result: i need to l2preview
m ({{wowapi}}) |
m (→Result: i need to l2preview) |
||
| Line 1: | Line 1: | ||
{{wowapi}} | {{wowapi}} __NOTOC__ | ||
Selects the specified id as the current target. | Selects the specified id as the current target. | ||
TargetUnit("unit"); | TargetUnit("unit"); | ||
== Parameters == | |||
=== Arguments === | |||
:("unit") | :("unit") | ||
:;unit : String - The [[ | :;unit : String - The [[unitId]] to select as a target. | ||
=== Returns === | |||
:;nil | :;nil | ||
== Example == | |||
:When the player changes his target there is a small delay before the global variable 'playertarget' is updated. This can be exploited and used for restoring your old target. | :When the player changes his target there is a small delay before the global variable 'playertarget' is updated. This can be exploited and used for restoring your old target. | ||
TargetUnit("unit") | |||
CastSpell()<br> | |||
TargetUnit("playertarget") | |||
=== Result === | |||
: This will restore your old target because of the delay. It will not clear your target if you didnt have one. | |||
== Details == | |||
: Selects the specified id as the current target. One can use any of the defined [[ | : Selects the specified id as the current target. One can use any of the defined [[unitId]] values. | ||