Background for Fallout 4
Member of the ObjectReference script
ObjectReferencefunctionDropObject(FormakObject, intaiCount=1)Native

Description

Wiki Description

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

Documentation Comment

Drops the specified object from this object's inventory (will not drop references)


Caveats

CK Wiki - Notes

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


Parameters

FormakObject

CK Wiki Description

The base object to drop from the inventory.

intaiCount=1

CK Wiki Description

How many to drop

  • Default:1

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)

Auto-Generated Example

Form myForm__akObject
int myInt__aiCount

ObjectReference returnedValue = myObjectReference__toCallFunctionOn.DropObject(myForm__akObject, myInt__aiCount)

Related Pages


Additional References

View this function’s page on the Fallout 4 Creation Kit Wiki

Some data provided by the Fallout 4 Creation Kit Wiki. Licensed under the Creative Commons Attribution-Share Alike 4.0 license.