Skip to content

five-on-it / packages/ai/src/police-drones / droneSees

Function: droneSees() ​

droneSees(sim, drone, eid): boolean

Defined in: packages/ai/src/police-drones.ts:109

Whether a drone sees a player: in the air, within its sight, the player out of doors, and nothing of the scenery between (a ray from the drone to the player, or the car they sit in).

Parameters ​

sim ​

SimWorld

drone ​

number

eid ​

number

Returns ​

boolean