Background for Fallout 4
Member of the ObjectReference script
ObjectReferencefunctionDropFirstObject(boolabInitiallyDisabled=false)Native

Description

Wiki Description

Drops the specified object from this object's inventory.

Documentation Comment

Drops the first object from this object's inventory


Caveats

CK Wiki - Notes

The definition of "first" is up to the code, and so this basically drops a random object. However it does it in such a manner that, if called multiple times, is likely to repeatedly drop the same kind of object until that object's stack is exhausted before moving onto the "next" stack.


Parameters

  1. boolabInitiallyDisabled=false

    CK Wiki Description

    If true, the dropped object will be disabled when dropped.


Examples

; Drops the first item from the player's inventory.
Game.GetPlayer().DropFirstObject()

Auto-Generated Example

bool myBool__abInitiallyDisabled

ObjectReference returnedValue = myObjectReference__toCallFunctionOn.DropFirstObject(myBool__abInitiallyDisabled)

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.