Skip to content

five-on-it / packages/ai/src/police-heavy / sendHeavyUnit

Function: sendHeavyUnit() ​

sendHeavyUnit(ai, w, eid, unit, hooks, solo?): boolean

Defined in: packages/ai/src/police-heavy.ts:379

The debug command's police: a unit of the heavy response sent after a player now, whatever their stars and the room's cap (an APC, a water cannon or a bike behind them, a cruiser with the Grappler or the GPS dart launcher behind them, the helicopter, a sniper on a roof, a police boat on their water); solo, the police send them nothing else from now on (until their stars are set again). Returns whether it came.

Parameters ​

ai ​

AiWorld

w ​

Wanted

eid ​

number

unit ​

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

hooks ​

PoliceHooks

solo? ​

boolean = false

Returns ​

boolean