Skip to content

five-on-it / packages/ai/src/police-roadblocks / setRoadblock

Function: setRoadblock() ​

setRoadblock(ai, w, target, spot): Roadblock

Defined in: packages/ai/src/police-roadblocks.ts:239

Sets a barricade at a chokepoint, after a player (see the module documentation); a perimeter's seals are these too.

Parameters ​

ai ​

AiWorld

w ​

Wanted

target ​

number

spot ​

RoutePoint & object

Returns ​

Roadblock