Skip to content

five-on-it / packages/sim/src/robots / struggle

Function: struggle() ​

struggle(sim, eid, action): void

Defined in: packages/sim/src/robots.ts:121

One tick of a held character's struggle, on its raw input (action: the interaction key): each fresh press counts, and ROBOT.struggle of them break the claw's hold. The claw lets go by itself of someone whose robot is gone, down, dead, or further than ROBOT.letGo, and of someone seated or dead.

Parameters ​

sim ​

SimWorld

eid ​

number

action ​

boolean

Returns ​

void