Lua GetZoneID

From ArcEmu-Wiki
Jump to: navigation, search

Description

Gets the Zone ID that the unit is in and returns in a numerical value.

Usage/Example

This example uses commands not included in this page. Please see the corresponding page for usage and definition.

function Get_Zone(Unit, Event)
local zone = Unit:GetZoneID()
 if zone ~= 478 then
   Unit:RegisterEvent("Example", 1000, 1)
end
end
Personal tools