Skip to content

five-on-it / packages/sim/src/zones / douseAt

Function: douseAt() ​

douseAt(sim, x, z, radius): number

Defined in: packages/sim/src/zones.ts:237

Water on the zones within radius of (x, z) (a water cannon's jet, where jets.ts' douses says it landed, the step calls it; a hose): a ground fire goes out, a cloud of gas or smoke shrinks to half its reach and loses half its time left. Returns how many it touched. The cars burning within reach are fire.ts' douseFire's; this does both. A twin (a client's proxy, a zone's or a car's) is left as it is: the snapshots say what the water did to it.

Parameters ​

sim ​

SimWorld

x ​

number

z ​

number

radius ​

number

Returns ​

number