WoW API: SetTracking

From AddOn Studio
Jump to navigation Jump to search

WoW API < SetTracking

Version 4.0 or higher[edit]

This command has been altered with the introduction of having more than one tracking skill active at a time. See Pre-4.0 for the old version.

Enables or disables a specified tracking.

SetTracking(id,boolean)

Arguments
id
The id of the track you would like to change to. The id is assigned by the client, 1 is the first tracking method available on the tracking list, 2 is the next and so on.
boolean : Can be true or false - true to enable a tracking, false to disable it.

Returns
nothing

Example

Enables the first tracking method on the list:

SetTracking(1,true);

Disables the first tracking method on the list:

SetTracking(1,false);
SetTracking(1);

Pre-4.0[edit]

This command has been altered with the introduction of having more than one tracking skill active at a time. See Version 4.0 or higher for the newer version.


Changes tracking method to the specified id.

SetTracking(id);

Arguments
id
The id of the track you would like to change to. The id is assigned by the client, 1 is the first tracking method available on the tracking list, 2 is the next and so on. The option "None" does not have a id assigned but can be accessed using nil.

Returns
nothing

Example

Changes to the first tracking method on the list:

SetTracking(1);

Changes the tracking method to "None" ('nil' is not required):

SetTracking(nil);