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
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
