X Tutup
×
Create a new article
Write your page title here:
We currently have 92,789 articles on Fallout Wiki. Type your article name above or click on one of the titles below and start writing!



Fallout Wiki
92,789Articles
☢  Independent Fallout Wiki Resources  ☢

DropObject - ObjectReference

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.

See Also

X Tutup