Skip to content

five-on-it / packages/sim/src/interaction / pickLock

Function: pickLock() ​

pickLock(sim, eid, input): boolean

Defined in: packages/sim/src/interaction.ts:449

One tick of picking a lock: with the interaction key held at a locked car the character cannot open (pick), the picking goes on, the same car's, and once it has lasted PICK's ticks the car is unlocked and the character's (a pick event: the police count it when somebody sees it); anything else (the key let go, another thing nearer, the car gone) stops it. Returns whether the character is picking (it stands still).

Parameters ​

sim ​

SimWorld

eid ​

number

input ​

VehicleInputLike

Returns ​

boolean