Skip to content

five-on-it / packages/sim/src/sewers / sewerStep

Function: sewerStep() ​

sewerStep(sim, eid, body, input): boolean

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

One tick of a character in the sewers, when it is down one (true; nothing done otherwise): choosing its exit (a number key: that exit of sewerExits; the interaction key: the first), then walking there, then up its cover onto the street, its body back in the world.

Parameters ​

sim ​

SimWorld

eid ​

number

body ​

RigidBody

input ​

action ​

boolean

slot ​

number

Returns ​

boolean