five-on-it / packages/ai/src/police-roadblocks / sendRollingBlock
Function: sendRollingBlock()
sendRollingBlock(
ai,w,eid,cars,send):boolean
Defined in: packages/ai/src/police-roadblocks.ts:333
Sends a rolling block ahead of a player (see the module documentation): cars cruisers, side by side across the road ROADBLOCKS.rollingAhead along the predicted route, facing the player, each told its place on the line .rollingLine along it. send spawns one cruiser at a spot and returns its unit. Returns whether it was sent.
Parameters
ai
w
eid
number
cars
number
send
(at) => PoliceUnit | undefined
Returns
boolean