Skip to content

five-on-it / packages/missions/src/schema / PolygonZone

Variable: PolygonZone ​

const PolygonZone: ZodObject<{ kind: ZodOptional<ZodEnum<{ checkpoint: "checkpoint"; dropoff: "dropoff"; pickup: "pickup"; race_gate: "race_gate"; restricted: "restricted"; safe: "safe"; spawn: "spawn"; }>>; polygon: ZodArray<ZodObject<{ x: ZodNumber; z: ZodNumber; }, $strict>>; raises: ZodOptional<ZodEnum<{ alert: "alert"; heat: "heat"; }>>; role: ZodOptional<ZodEnum<{ guards: "guards"; hospital: "hospital"; players: "players"; police: "police"; traffic: "traffic"; }>>; y: ZodOptional<ZodNumber>; }, $strict>

Defined in: packages/missions/src/schema.ts:169

An area of any shape: everything inside the polygon (3 to 32 points of its outline, in order either way round, x and z of the game's frame), on the ground, or on the floor y says (a storey, a deck) when it has one: within a few metres of that height.