Skip to content

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

Function: spawnContainer() ​

spawnContainer(sim, kind, at, items?, lock?): number

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

A container standing at a spot (its base on the ground at y, facing yaw): a fixed box of its kind's size, holding items, locked when it has a lock tag.

Parameters ​

sim ​

SimWorld

kind ​

ContainerKind

at ​

SpawnPoint

items? ​

readonly ItemStack[] = []

lock? ​

string

Returns ​

number