Zone and Garage¶
Zone¶
server.createZone({ center, radius }) or ({ min, max }), plus world
(default any). Fires zoneEnter, zoneLeave and zoneMove.
id |
|
garage |
The garage it covers, for garage zones. |
data |
Your own state. |
exists, destroy() |
Destroying sends no leave events. |
Garage¶
server.garages: the game's garages. Players' games run none of their
logic; build it from zoneEnter on garage.zone.
id, name |
Names come from the map files and aren't unique. |
type |
GarageType: PayNSpray, SafehouseGanton, ImpoundLS, ... |
position |
|
zone |
Over its floor. |
isOpen, open(), close() |
The door, for everyone. |