Difference between revisions of "RemoveAllItems"
Jump to navigation
Jump to search
imported>Blackblade m (Clarifies a minor point) |
imported>Dejunai m (Clarification Regarding Quest 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. Note that quest items are not removed. | 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. Note that quest items are not removed when this function is called on the player, however container-to-container quest items will move as expected. | ||
Revision as of 03:45, 15 September 2006
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. Note that quest items are not removed when this function is called on the player, however container-to-container quest items will move as expected.