Resource:Creation Kit > DropObject - ObjectReference
Member of: 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
; Drops one chest from the player's inventory, and unlocks it Game.GetPlayer().DropObject(ChestProperty).Lock(false)
; Drops one hundred arrows from the player's inventory Game.GetPlayer().DropObject(ArrowProperty, 100)
Notes
This will not drop a specific reference - if you want to drop a specific reference, then call Drop() on it instead.
