Skip to content

five-on-it / packages/sim/src/fire / ignite

Function: ignite() ​

ignite(sim, car, ticks, by): void

Defined in: packages/sim/src/fire.ts:134

Sets a vehicle alight with a fuse of ticks (shortened, never lengthened, if it burns already), by the client by (kept if it has an owner already); a wreck's fuse is at most FIRE.wreckFuseSeconds. Nothing for a car that cannot burn, stands in water or has blown up already.

Parameters ​

sim ​

SimWorld

car ​

number

ticks ​

number

by ​

number

Returns ​

void