Skip to content

five-on-it / packages/sim/src/devices / carRepairGap

Function: carRepairGap() ​

carRepairGap(sim, eid, car): number | undefined

Defined in: packages/sim/src/devices.ts:469

How far a character stands in front of a car it may repair (the key held there, with a toolbox): a car hurt (or on flat tyres) but not blown up, standing still with nobody at its wheel; undefined for any other, or a character without a toolbox.

Parameters ​

sim ​

SimWorld

eid ​

number

car ​

number

Returns ​

number | undefined