Skip to content

five-on-it / packages/ai/src/police / setPoliceSpawns

Function: setPoliceSpawns() ​

setPoliceSpawns(ai, spawns, areas?): void

Defined in: packages/ai/src/police.ts:463

Sets where the police cars come out: the level's police spawn points (a station's yard), a game's spawn areas of the police; none of either, the roads around the player.

Parameters ​

ai ​

AiWorld

spawns ​

readonly SpawnPoint[]

areas? ​

readonly object[] = []

Returns ​

void