Difference between revisions of "RemoveAllItems"
Jump to navigation
Jump to search
imported>Dejunai m (Clarification Regarding Quest Items) |
imported>Scruggs (doesn't remove unplayable items) |
||
Line 6: | Line 6: | ||
RemoveAllItems FriendlyJailer, 1 | 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. | 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". | |||
Revision as of 15:26, 29 January 2007
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".