Skip to content

five-on-it / packages/ai/src/wanted / commitCrime

Function: commitCrime() ​

commitCrime(w, crime, tick): boolean

Defined in: packages/ai/src/wanted.ts:260

Charges a crime to its player's Wanted level: the Heat rises (gunfire and shots at a police car at most once per WANTED's rate, speeding once per its own), the stars with it, and the crime's place is where the police think the player is. Returns whether it counted.

Parameters ​

w ​

Wanted

crime ​

Crime

tick ​

number

Returns ​

boolean