Skip to content

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

Variable: DRONES ​

const DRONES: object

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

The numbers of the police's drone.

Type Declaration ​

againTicks ​

readonly againTicks: 1800 = 1800

Another is sent this long after one is shot down (ticks: thirty seconds).

cost ​

readonly cost: 1 = 1

What a drone costs of the room's cap on police actors.

gain ​

readonly gain: 1.2 = 1.2

It closes on its station this fast, per metre still to go (1/s).

lag ​

readonly lag: 0.4 = 0.4

It keeps their speed times this behind its player (s)…

leaveRange ​

readonly leaveRange: 150 = 150

leaveTicks ​

readonly leaveTicks: 600 = 600

A drone no longer needed flies off and is gone after this long (ticks: ten seconds), or once this far from every player (m).

near ​

readonly near: 6 = 6

…at least this far, and at most this far (m).

roofReach ​

readonly roofReach: 6 = 6

The roofs this far around its station and its player are what it keeps above (m).

sight ​

readonly sight: 80 = 80

It sees this far (m, through the air).

spawnBack ​

readonly spawnBack: 60 = 60

A drone is sent this far from its player, behind them (m).

trail ​

readonly trail: 10 = 10

wreckTicks ​

readonly wreckTicks: 1200 = 1200

Its wreck lies this long before it is taken away (ticks: twenty seconds).