Skip to content

five-on-it / packages/ai/src/police-snipers / clearLine

Function: clearLine() ​

clearLine(sim, from, to, range): boolean

Defined in: packages/ai/src/police-snipers.ts:244

Whether nothing of the scenery (a roof, a deck, a wall, a tunnel's roof) and no smoke stands between two points within range metres of each other (cars, people and flyers never block).

Parameters ​

sim ​

SimWorld

from ​

x ​

number

y ​

number

z ​

number

to ​

x ​

number

y ​

number

z ​

number

range ​

number

Returns ​

boolean