Skip to content

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

Function: trailSystem() ​

trailSystem(ai, players): void

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

The trails (see the module documentation): a point every K9.sampleTicks for each wanted player at a K9's stars, none in water, the old ones forgotten; water wipes the trail out; a player whose stars do not send a dog has none.

Parameters ​

ai ​

AiWorld

players ​

ReadonlyMap<number, number>

Returns ​

void