Skip to content

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

Function: catchUpSchedule() ​

catchUpSchedule(ai, npc): void

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

After the room clock was skipped hours on (a mission's skipTime): puts an NPC on a schedule where its hour has it now (at its place, its post, the spot of its break; indoors when it is at home), as if it had walked there in the time skipped, and hands it the hour on its next tick. A sentry on the alert stays where it is.

Parameters ​

ai ​

AiWorld

npc ​

NpcState

Returns ​

void