Skip to content

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

Variable: EscapeObjective ​

const EscapeObjective: ZodObject<{ checkpoint: ZodOptional<ZodBoolean>; distance: ZodOptional<ZodNumber>; failText: ZodOptional<ZodString>; from: ZodUnion<readonly [ZodLiteral<"police">, ZodArray<ZodString>]>; hint: ZodOptional<ZodString>; id: ZodString; marker: ZodOptional<ZodString>; next: ZodOptional<ZodObject<{ done: ZodOptional<ZodUnion<readonly [ZodString, ZodString]>>; failed: ZodOptional<ZodUnion<readonly [ZodString, ZodString]>>; }, $strict>>; seconds: ZodOptional<ZodNumber>; team: ZodOptional<ZodString>; text: ZodOptional<ZodString>; timeLimit: ZodOptional<ZodNumber>; verb: ZodLiteral<"escape">; }, $strict>

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

Get away: from the police (done once the Wanted level is back to zero; an arrest fails it), or from actors (groups of enemies, NPC actors), none of them seeing the player for seconds in a row, or none of them within distance metres, or both (a sighting, or one of them coming within the distance, starts the clock over); fails when the player goes down.