Skip to content

dropOnGround beta ​

Function of @v12-engine/engine

ts
export declare function dropOnGround(world: World, instance: ItemInstance, at: Vec2): GroundItem;

Puts the item on the ground at the closest walkable point to at, tells the game (itemDropped) and returns the ground item