Skip to content

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

Function: followSchedule() ​

followSchedule(ai, npc): boolean

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

One tick of an NPC's schedule, before its brain: a new hour is handed over (an NPC indoors comes back out at its door first), and a home-goer that reached its door goes in. Returns whether the NPC is indoors now: its brain skips the tick (its input idle).

Parameters ​

ai ​

AiWorld

npc ​

NpcState

Returns ​

boolean