Skip to content

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

Function: clearOfLifts() ​

clearOfLifts(sim): void

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

Keeps people from under a lift's platform coming down: whoever stands in its shaft under it (a person on foot, their middle within its platform's outline), the platform's underside about to reach their head, is set on top of it instead. Pressed into the floor of its pit, a person would be pushed through it. Run after the characters move and before the lifts do.

Parameters ​

sim ​

SimWorld

Returns ​

void