Skip to content

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

Variable: Actor ​

const Actor: ZodDiscriminatedUnion<[ZodObject<{ at: ZodString; class: ZodUnion<readonly [ZodString, ZodArray<ZodString>]>; id: ZodString; key: ZodOptional<ZodString>; locked: ZodDefault<ZodBoolean>; owner: ZodDefault<ZodEnum<{ mission: "mission"; nobody: "nobody"; npc: "npc"; }>>; tags: ZodDefault<ZodArray<ZodString>>; type: ZodLiteral<"vehicle">; }, $strict>, ZodObject<{ armed: ZodDefault<ZodBoolean>; at: ZodString; class: ZodOptional<ZodString>; count: ZodNumber; crew: ZodDefault<ZodNumber>; id: ZodString; max: ZodOptional<ZodNumber>; mode: ZodEnum<{ car: "car"; foot: "foot"; }>; profile: ZodEnum<{ aggressive: "aggressive"; guard: "guard"; pursuit: "pursuit"; tail: "tail"; }>; tags: ZodDefault<ZodArray<ZodString>>; targets: ZodOptional<ZodObject<{ team: ZodString; }, $strict>>; type: ZodLiteral<"chasers">; }, $strict>, ZodObject<{ at: ZodString; count: ZodDefault<ZodNumber>; id: ZodString; item: ZodString; type: ZodLiteral<"item">; }, $strict>], "type">

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

What a mission spawns or binds: vehicles, groups of enemies, items on the ground, containers, the level's doors, NPCs (people, guards, civilians, drivers, targets, VIPs), the level's cameras, terminals, the level's garages, shops, the level's light pieces, devices (objects).