Skip to content

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

Function: sendPoliceUnit() ​

sendPoliceUnit(ai, client, unit, options?): boolean

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

The debug command's police: a unit of the heavy response sent after a player now (police-heavy.ts' sendHeavyUnit: an APC, a water cannon, a bike, a cruiser with the Grappler or the GPS dart, the helicopter, a sniper, a police boat), at so many stars first when they are given; solo, the police send them nothing else. Returns whether it came.

Parameters ​

ai ​

AiWorld

client ​

number

unit ​

"boat" | "apc" | "dart" | "grappler" | "helicopter" | "sniper" | "cannon" | "bike"

options? ​

heat? ​

number

solo? ​

boolean

stars? ​

number

Returns ​

boolean