Skip to content

five-on-it / packages/sim/src/status / incapacitate

Function: incapacitate() ​

incapacitate(sim, eid, status, ticks, push?): void

Defined in: packages/sim/src/status.ts:91

Lays a character on foot down with a status (stunned, knocked out, asleep) for ticks, shoved the way push says: knocked down if it stood (character.ts), its time lying set to ticks if it already lay. Nothing happens to a dead or seated character, nor to a dog (nobody stuns one, knocks it out or puts it to sleep). A dart still in it is spent.

Parameters ​

sim ​

SimWorld

eid ​

number

status ​

number

ticks ​

number

push? ​

x ​

number

z ​

number

Returns ​

void