A function included in the GECK version 188.8.131.52.
Removes all items from the calling reference's inventory.
If a target container is specified, the items are moved to the target container with all equipment items retaining their current health; otherwise the items are destroyed as they would be via RemoveItem.
If the retain ownership flag is set to a non-zero value, the items' original ownership is retained; otherwise the ownership is cleared.
RemoveAllItems RemoveAllItems TreasureChestREF RemoveAllItems EnclaveSoldierREF 1
Empties out the References.
ContainerREF.removeallitems player 1 0
Removes all items from ContainerREF and transfer them to the Player. Messages for items are shown.
ContainerREF.removeallitems player 1 1
Removes all items from ContainerREF and transfer them to the Player. Messages for each item are hidden.
- The HideMessages flag is undocumented, and was only first observed as working in Fallout: New Vegas. It is unclear if the flag is available in Fallout 3.