Skip to content

five-on-it / packages/sim/src/mods / smokeScreen

Function: smokeScreen() ​

smokeScreen(sim, car): void

Defined in: packages/sim/src/mods.ts:406

One tick of a vehicle's smoke screen (R10, the dispenser's smoke; the server's alone): while it pours, a small cloud is laid behind the car every MODS.dispenser.smokeEvery ticks, a trail of smoke that hides the car from whoever follows (zones.ts' sightBlocked) and that a pursuer drives into blind. A wreck pours no more.

Parameters ​

sim ​

SimWorld

car ​

number

Returns ​

void