Skip to content

five-on-it / packages/ai/src/police-k9 / k9System

Function: k9System() ​

k9System(ai, players): void

Defined in: packages/ai/src/police-k9.ts:205

One tick of the K9 units (see the module documentation): each dog on its trail (or lost, or backing out of gas), biting the player when it reaches them; each handler told to follow it; a unit no longer needed, or whose dog is down, leaves and is gone after a while.

Parameters ​

ai ​

AiWorld

players ​

ReadonlyMap<number, number>

Returns ​

void