Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

dropItem

dropItem(world, itemDrop): Entity | undefined

Takes count copies out of bag slot slot and lays them in the world as an entity with Loot, in front of the holder, with the stack’s data and drawn as the item’s model. Returns that entity; none, and nothing leaves the bag, where the slot holds fewer than count or the holder stands nowhere. On a holder a room streams, it asks the room and returns none.

Parameter Type
world World
itemDrop ItemDrop

Entity | undefined