Skip to content

five-on-it / packages/ai/src/system / aiSystem

Function: aiSystem() ​

aiSystem(ai): void

Defined in: packages/ai/src/system.ts:653

One tick of every NPC, in entity order: the ones the last step carjacked out of their car start fleeing, then each decides (a sentry with its own brain, between the book of stealth's look at the cameras and its count of who is seen); the ones that asked to go are removed after. Then the traffic and the crowd; last, whoever stands in tear gas runs out of it (gas.ts).

Parameters ​

ai ​

AiWorld

Returns ​

void