ZONE_CHANGED
Jump to navigation
Jump to search
Flavors |
---|
Links |
Info |
Added in 2.0.1 |
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"