WoW:API GetZoneText: Difference between revisions
Jump to navigation
Jump to search
GetZoneText -Documentation by Meog-
mNo edit summary |
mNo edit summary |
||
Line 14: | Line 14: | ||
:String zonetext | :String zonetext | ||
:;zonetext : string, contains the zone name | :;zonetext : string, contains the zone name (localized, the client doesn't have an non-localized name) | ||
---- | ---- |
Revision as of 20:30, 10 February 2006
Returns the zone text
GetZoneText();
- Arguments
- none
- Returns
- String zonetext
- zonetext
- string, contains the zone name (localized, the client doesn't have an non-localized name)
- Example
local zonetext = GetZoneText();
- Result
"Elwynn Forest"
- 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.