RemoveAllItems
Revision as of 15:26, 29 January 2007 by imported>Scruggs (doesn't remove unplayable items)
Syntax:
RemoveAllItems TargetContainerID (optional), RetainOwnershipFlag (optional)
Example:
RemoveAllItems RemoveAllItems TreasureChest RemoveAllItems FriendlyJailer, 1
Removes all items from the caller's inventory. If TargetContainerID is specified, the objects are moved to the target container, otherwise they are destroyed. If RetainOwnershipFlag = 1, the items' original ownership is retained; otherwise, the ownership is cleared.
Notes
- Quest items are not removed when this function is called on the player.
- This function does not remove items flagged as "unplayable".