Mod:Creation Kit/DropObject - ObjectReference

Member of: Mod:Creation Kit/ObjectReference Script

Drops the specified base object from this object's inventory.

Syntax
ObjectReference Function DropObject(Form akObject, int aiCount = 1) native

Parameters

 * akObject: The base object to drop from the inventory.
 * aiCount: How many to drop
 * Default: 1

Return Value
The object that was dropped.

Examples
Game.GetPlayer.DropObject(ChestProperty).Lock(false) Game.GetPlayer.DropObject(ArrowProperty, 100)
 * Drops one chest from the player's inventory, and unlocks it
 * Drops one hundred arrows from the player's inventory