Skip to content

five-on-it / packages/sim/src/character / knockDown

Function: knockDown() ​

knockDown(sim, eid, push?, ticks?): void

Defined in: packages/sim/src/character.ts:369

Knocks a character down: for ticks (KNOCKDOWN_TICKS by default, the time a dead one lies) it is an inanimate box that tumbles with whatever hit it (rotations free, some friction) and ignores its input. One in the juggernaut suit (gear.ts) stays on its feet while it lives.

Parameters ​

sim ​

SimWorld

eid ​

number

push? ​

x ​

number

z ​

number

ticks? ​

number = KNOCKDOWN_TICKS

Returns ​

void