WoW API: SetTracking

From AddOn Studio
Revision as of 16:44, 4 December 2007 by WoWWiki>Pcj
Jump to navigation Jump to search

WoW API < SetTracking

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);