tryDrop

final Boolean tryDrop(Item item, Cell cell)

Tries to drop item as an ItemEntity at cell.

If item is currently equipped, does nothing and returns false. Otherwise, converts item to ItemEntity and tries to spawn it using CreationEngine.

Return

true if the converted ItemEntity successfully spawned, false otherwise.

Parameters

item

The item being dropped.

cell

The cell at which to spawn converted ItemEntity.