Skip to content

five-on-it / packages/ai/src/schedule / routineOf

Function: routineOf() ​

routineOf(npc): { break: boolean; home: boolean; points: object[]; post: boolean; yaw: number; } | undefined

Defined in: packages/ai/src/schedule.ts:161

What an NPC's routine is in its current hour: the points it walks (one: a place to stand at, several: a patrol, looping), whether it keeps a post (looking around), takes a break (off guard, its phone out) or is on its way home; undefined without a schedule or an hour in force.

Parameters ​

npc ​

NpcState

Returns ​

{ break: boolean; home: boolean; points: object[]; post: boolean; yaw: number; } | undefined