![]() |
Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
Fires when the player enters an outdoors subzone.
ZONE_CHANGED
Payload[]
None
Details[]
| Related API | GetSubZoneText |
| Related Events | ZONE_CHANGED_NEW_AREA ZONE_CHANGED_INDOORS |
Example[]
In Stormwind, when moving from Valley of Heroes to Trade District.
local function OnEvent(self, event, ...)
print(event, GetSubZoneText())
end
local f = CreateFrame("Frame")
f:RegisterEvent("ZONE_CHANGED")
f:SetScript("OnEvent", OnEvent)
> "ZONE_CHANGED", "Valley of Heroes"
> "ZONE_CHANGED", "Trade District"
