Skip to content

five-on-it / packages/sim/src/sitting / sitTick

Function: sitTick() ​

sitTick(sim, eid, input): boolean

Defined in: packages/sim/src/sitting.ts:135

One tick of a sitting character: up when it asks to move or presses the interaction key (once the press that sat it down has cooled off); else its breath back, a hit point at a time, up to SIT.healTo of its full health. Returns whether it still sits.

Parameters ​

sim ​

SimWorld

eid ​

number

input ​

action ​

boolean

steer ​

number

throttle ​

number

Returns ​

boolean