Skip to content

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

Function: itemSystem() ​

itemSystem(sim, eid, input): void

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

One tick of a character's item keys: the selected slot follows the input; the panel closes once the character is seated, down, in cover, carjacking or getting in or out of a car, or what is open is gone or out of reach; the use key uses the selected item (anywhere but lying down); on foot, the drop key drops it and a transfer moves a stack in or out of the open container. Runs in the character system, before the interaction key.

Parameters ​

sim ​

SimWorld

eid ​

number

input ​

VehicleInputLike

Returns ​

void