Skip to content

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

Function: speedingCrime() ​

speedingCrime(sim, roads, client, eid, sees, officers): Crime | undefined

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

Speeding past the police: a player at the wheel going faster than WANTED's share of the limit of the road they are on (and than its least speed), noticed by an officer (sees); a crime where they are, or none.

Parameters ​

sim ​

SimWorld

roads ​

RoadGraph

client ​

number

eid ​

number

sees ​

(officer) => boolean

officers ​

readonly number[]

Returns ​

Crime | undefined