WoW:API GetCurrentMapZone: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 28: Line 28:


:Note that the value returned represents the map display, and not necessarily the player's actual location. The [[API SetMapToCurrentZone|SetMapToCurrentZone()]] function will reset the values to represent the player's location.
:Note that the value returned represents the map display, and not necessarily the player's actual location. The [[API SetMapToCurrentZone|SetMapToCurrentZone()]] function will reset the values to represent the player's location.
----
----
{{Template:WoW API}}
{{WoW API}}
[[Category:API Functions|GetCurrentMapZone]]
[[Category:API World Map Functions|GetCurrentMapZone]]

Revision as of 05:21, 4 January 2006

GetCurrentMapZone -Documentation by Meog-

Returns the index of the zone the world map is currently showing

zoneIndex = GetCurrentMapZone();

Arguments
none

Returns
zoneIndex
zoneIndex
Number - The index of the currently displayed zone within the continent (obtained via GetMapZones(continentIndex)), or 0 if showing the entire continent.

Example
local zone = GetCurrentMapZone();

Result
10

Details
Note that the value returned represents the map display, and not necessarily the player's actual location. The SetMapToCurrentZone() function will reset the values to represent the player's location.

Template:WoW API