WoW:API GetSubZoneText: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m ({{wowapi}}, formatting) |
||
Line 1: | Line 1: | ||
{{wowapi}} | |||
Returns the subzone name. | |||
Returns the subzone | |||
GetSubZoneText(); | GetSubZoneText(); | ||
Line 14: | Line 13: | ||
:String subzone | :String subzone | ||
:;subzone : string, | :;subzone : string, subzone name or an empty string (if not in a subzone). | ||
---- | ---- | ||
;''Example'' | ;''Example'' | ||
local subzone = GetSubZoneText(); | local subzone = GetSubZoneText(); | ||
message(subzone); | |||
;''Result'' | ;''Result'' | ||
Message box appears with current subzone text. | |||
---- | ---- | ||
;''Description'' | ;''Description'' | ||
: Returns the subzone text, if the player is a subzone. The event | : 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 [[API_GetMinimapZoneText|GetMinimapZoneText]] and [[API_GetZoneText|GetZoneText]]. | ||
: Additional note: Blizzard also registers the event '''ZONE_CHANGED_INDOORS'''. If you know what this event is used for, please edit the page. | |||
Revision as of 12:38, 18 June 2006
Returns the subzone name.
GetSubZoneText();
- Arguments
- none
- Returns
- String subzone
- subzone
- string, subzone name or an empty string (if not in a subzone).
- Example
local subzone = GetSubZoneText(); message(subzone);
- Result
Message box appears with current subzone text.
- 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. If you know what this event is used for, please edit the page.