Description
Wiki Description
Removes all items from this object's inventory, optionally transferring them to another object.
Documentation Comment
Removes all items from this container, transferring it to the other object if passed
Caveats
CK Wiki - Notes
- The calling object and akTransferTo must be loaded.
- If akTransferTo is not loaded in memory, for example if not persisted and in an unloaded cell, the items will be deleted instead.
- If (akTransferTo = None) is specified, the container will silently clear/empty/remove all contents.
Parameters
ObjectReferenceakTransferTo=NONE
CK Wiki Description
The object to transfer the items we removed to.
- Default:None
boolabKeepOwnership=false
CK Wiki Description
Should the item's ownership be kept when moved to the other object?
- Default:False
Examples
; Remove all items from the chest
ChestProperty.RemoveAllItems(); Remove all items from the player's inventory, but keep ownership information
Game.GetPlayer().RemoveAllItems(abKeepOwnership = true)Auto-Generated Example
ObjectReference myObjectReference__akTransferTo
bool myBool__abKeepOwnership
myObjectReference__toCallFunctionOn.RemoveAllItems(myObjectReference__akTransferTo, myBool__abKeepOwnership)Related Pages
Additional References
View this function’s page on the Fallout 4 Creation Kit Wiki
