RemoveAllItems

From GECK

Revision as of 13:34, 28 March 2015 by Jazzisparis (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Link to TES4 Construction Set Wiki: RemoveAllItems.

A function included in the GECK version 1.1.0.36.

Description

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.

Syntax

container.RemoveAllItems TargetContainerID:ref RetainOwnershipFlag:int HideMessages:int

Example

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.

Notes

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

See Also

Personal tools