|
|
| (8 intermediate revisions by 7 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}} | |
| [[Category:API Functions|GetSubZoneText]]
| |
| [[Category:API Location Functions|GetSubZoneText]]
| |