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:352

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.

Parameters ​

sim ​

SimWorld

eid ​

number

push? ​

x ​

number

z ​

number

ticks? ​

number = KNOCKDOWN_TICKS

Returns ​

void