five-on-it / packages/sim/src/holds / holdSystem
Function: holdSystem()
holdSystem(
sim,eid,input):boolean
Defined in: packages/sim/src/holds.ts:86
One tick of a character's hold: with the interaction key held where interactionOf offers a work done by holding, the same work at the same thing as on the last tick, the hold goes on, and once it has lasted the work's ticks the work is done; anything else stops it. Once a work is done, the key is let go before another hold begins (a bomb planted is not defused by the same hold). Returns whether the character is holding (it stands still).
Parameters
sim
eid
number
input
Returns
boolean