WoW:API GetSubZoneText: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
m (Move page script moved page API GetSubZoneText to WoW:API GetSubZoneText without leaving a redirect)
 
(7 intermediate revisions by 6 users not shown)
Line 1: Line 1:
  <center>'''GetSubZoneText''' ''-Documentation by [[user:Meog|Meog]]-''</center>
{{wowapi}}
Returns the subzone name.
  subzone = GetSubZoneText();


Returns the subzone text
== Returns ==
;subzone : String - subzone name or an empty string (if not in a subzone).


GetSubZoneText();
== Related events ==
One or more of the following fire when the player enters a new zone:
* {{api|t=e|ZONE_CHANGED}}
* {{api|t=e|ZONE_CHANGED_INDOORS}}
* {{api|t=e|ZONE_CHANGED_NEW_AREA}}


----
== See also ==
;''Arguments''
* {{api|GetZoneText}}
 
* {{api|GetMinimapZoneText}}
:''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 <tt>"ZONE_CHANGED"</tt> is triggered, when the text changes. See also the related functions [[API_GetMinimapZoneText|GetMinimapZoneText]] and [[API_GetZoneText|GetZoneText]].
 
<small>Additional note: Blizzard also registers the event <tt>"ZONE_CHANGED_INDOORS"</tt>, please edit the page, if you know, for what it is.</small>
 
----
{{Template:WoW API}}

Latest revision as of 04:46, 15 August 2023

WoW API < GetSubZoneText

Returns the subzone name.

subzone = GetSubZoneText();

Returns

subzone
String - subzone name or an empty string (if not in a subzone).

Related events

One or more of the following fire when the player enters a new zone:

See also