Skip to content

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

Function: lethalForce() ​

lethalForce(sim): Set<number>

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

The players who used lethal force on the police in the last step (M7), by client id: a hit on an officer by a weapon that kills (a shot a shield stopped too), on a police car or a police drone; a shot of such a weapon that passes within WANTED.shotAtReach of an officer, or a blast that goes off with one in its reach. From then the police answer in kind (police.ts).

Parameters ​

sim ​

SimWorld

Returns ​

Set<number>