RemoveAllItems

From GECK

Link to TES4 Construction Set Wiki: RemoveAllItems.

A function included in the GECK version 1.1.0.36.

Contents

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

Example

RemoveAllItems
RemoveAllItems TreasureChestREF
RemoveAllItems EnclaveSoldierREF 1

See Also

Personal tools