five-on-it / packages/sim/src/interaction / takeAction
Function: takeAction()
takeAction(
sim,eid,it):boolean
Defined in: packages/sim/src/interaction.ts:550
Does what the interaction key asks (see interactionOf): gets in (by the seat's door, boarding.ts) or carjacks, unlocks a car with its key and gets in, takes a stored car out, picks up, opens or closes a container, opens or shuts a door; at a contact, a terminal or a keypad, raises the interact event the server's missions answer; opens a body's pockets, wakes a sleeper. Returns false when it did nothing (a lock is picked by holding the key, pickLock, not by a press).
Parameters
sim
eid
number
it
Returns
boolean