Skip to content

five-on-it / packages/sim/src/carjack / carjackBeat

Function: carjackBeat() ​

carjackBeat(sim, eid): boolean

Defined in: packages/sim/src/carjack.ts:312

One tick of a carjack's beat, if the character is in one: it stands where it is (its motion along the ground stopped), facing the driver's door, and, when the beat is over, gets in. Returns whether it was in one (the character system does nothing else with it this tick).

Parameters ​

sim ​

SimWorld

eid ​

number

Returns ​

boolean