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

dropItem

dropItem(authority, holder, itemDrop): Entity | undefined

Takes count copies out of holder’s 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, on the world authority decides outcomes on: the room’s, or a game’s played alone. Returns that entity; none, and nothing leaves the bag, where the slot holds fewer than count or the holder stands nowhere. A page in a room sends inventory.commands.drop instead.

Parameter Type
authority Authority
holder Entity
itemDrop ItemDrop

Entity | undefined