Skip to content

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

Function: respondAt() ​

respondAt(ai, client, stars, at): boolean

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

A mission's respond (M13: a heist's alarm): the police respond at a place. The player is given so many stars (as setWantedStars) and the police are told the place, not where the player is: the units, the perimeter and the seals go there. Returns whether it counted.

Parameters ​

ai ​

AiWorld

client ​

number

stars ​

number

at ​

x ​

number

z ​

number

Returns ​

boolean