WoW:API GetSubZoneText: Difference between revisions

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

Revision as of 18:43, 29 August 2005

GetSubZoneText -Documentation by Meog-

Returns the subzone text

GetSubZoneText();

Arguments
none

Returns
String subzone
subzone
string, contains the subzone name, is empty (not nil) when player is not in a subzone

Example
local subzone = GetSubZoneText();

Result
"Goldshire"

Description
Returns the subzone text, if the player is a subzone. The event "ZONE_CHANGED" is triggered, when the text changes. See also the related functions GetMinimapZoneText and GetZoneText.

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


Template:WoW API