Skip to content

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

Function: nitroBurn() ​

nitroBurn(sim, car): boolean

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

One tick of a vehicle's nitro: the nitro key fires a charge (one left, no burn on, the car whole) into a burn of MODS.nitro.seconds; a burn under way counts down, its flame scorching what is right behind every few ticks. Returns whether it burns this tick.

Parameters ​

sim ​

SimWorld

car ​

number

Returns ​

boolean