Zone
onEnter(zone), onExit(zone), inside(zone) (every frame while inside), debug (draws the outline), data.
- A box is centered on
coords:size.xis the width,size.ythe length,size.zthe height,headingin degrees.minZandmaxZreplace the height. - A poly takes 3 to 256 points and has no height limit unless
minZormaxZis set. - A zone has
id,shape,data,isInside,enabled, andzone:Remove(),zone:Contains(coords),zone:SetEnabled(enabled). Removing or disabling a zone the player is in callsonExit.
settings.zoneInterval ms (default 250), and every frame only while an inside or debug zone needs it.
Point
point.currentDistance. nearby(point) runs every frame while inside, closest point first.
Example
client.lua