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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
world |
World |
itemDrop |
ItemDrop |
Returns
Section titled “Returns”Entity | undefined