Skip to content

five-on-it / packages/sim/src/boarding / deadInSeat

Function: deadInSeat() ​

deadInSeat(sim, eid): boolean

Defined in: packages/sim/src/boarding.ts:316

One tick of a character killed in its seat: it stays in the car, slumped, and at the wheel its car answers nobody. A body that stays (Character.stays) sits there for good; anyone else for the time the dead lie (KNOCKDOWN_TICKS, counted in Character.down), then it is out of the car and the call returns true: the caller brings it back as the dead come back. Off a two-wheeler the body falls once the machine has all but stopped (putOutDead).

Parameters ​

sim ​

SimWorld

eid ​

number

Returns ​

boolean