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:245
Sets a barricade at a chokepoint, after a player (see the module documentation); a perimeter's seals are these too, and the cops' orders call it (police-cops.ts).
Parameters
ai
w
target
number
spot
RoutePoint & object