Skip to content

five-on-it / packages/sim/src/items / setSlots

Function: setSlots() ​

setSlots(sim, eid, stacks): void

Defined in: packages/sim/src/items.ts:365

Sets what an entity holds, slot by slot (a client's copy of what the server says it holds).

Parameters ​

sim ​

SimWorld

eid ​

number

stacks ​

readonly ItemStack[]

Returns ​

void