Skip to content

five-on-it / packages/ai/src/police-fittings / fittingSystem

Function: fittingSystem() ​

fittingSystem(ai, players, hooks): void

Defined in: packages/ai/src/police-fittings.ts:158

One tick of the fittings (see the module documentation), after the units are steered: the cruisers fitted and unfitted as the stars ask, the fitted cruisers' crews and every unit after a tagged car given their profiles, the darts fired, the tags radioed as sightings.

Parameters ​

ai ​

AiWorld

players ​

ReadonlyMap<number, number>

hooks ​

PoliceHooks

Returns ​

void