DropObject - ObjectReference

From Creation Kit
Jump to: navigation, search

Member of: ObjectReference Script

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


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


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

Return Value

The object that was dropped.


; Drops one chest from the player's inventory, and unlocks it

; Drops one hundred arrows from the player's inventory
Game.GetPlayer().DropObject(ArrowProperty, 100)


This will not drop a specific reference - if you want to drop a specific reference, then call Drop() on it instead.

See Also