Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
Advertisement

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"
Advertisement