WoW:API GetZoneText: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
No edit summary
Line 32: Line 32:
----
----
{{Template:WoW API}}
{{Template:WoW API}}
[[Category:API Functions|GetZoneText]]
[[Category:API Location Functions|GetZoneText]]

Revision as of 14:59, 4 January 2006

GetZoneText -Documentation by Meog-

Returns the zone text

GetZoneText();

Arguments
none

Returns
String zonetext
zonetext
string, contains the zone name

Example
local zonetext = GetZoneText();

Result
"Elwynn Forrest"

Description
Returns the zone text, in which the player currently is. The event "ZONE_CHANGED_NEW_AREA" is triggered, when the text changes. See also the related functions GetSubZoneText and GetMinimapZoneText.

Additional note: Blizzard also registers the event "ZONE_CHANGED_INDOORS", please edit the page, if you know, for what it is.


Template:WoW API