WoW API: GetNumTrackingTypes

From AddOn Studio
Revision as of 22:48, 14 November 2007 by WoWWiki>Vladinator (New page: {{wowapi}} <center>'''GetNumTrackingTypes''' ''-Documentation by Vladinator-''</center> Returns the number of available tracking methods. GetNumTrackingTypes(); --...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

WoW API < GetNumTrackingTypes

GetNumTrackingTypes -Documentation by Vladinator-

Returns the number of available tracking methods.

GetNumTrackingTypes();

Arguments
none

Returns
Number of available tracking methods. Note that it excludes the "None" option from the counting. Both spells and static tracks are counted.

Example

Prints available tracking methods in the default chat frame:

local count = GetNumTrackingTypes();
DEFAULT_CHAT_FRAME:AddMessage(count);