WoW API < TargetUnit

Selects the specified id as the current target.


Parameters Edit

Arguments Edit

String - The unitId to select as a target.

Returns Edit


Example Edit

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.

Result Edit

This will restore your old target because of the delay. It will not clear your target if you didnt have one.

Details Edit

Selects the specified id as the current target. One can use any of the defined unitId values.

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.