RemoveItem

From the CreationKit Wiki
Jump to navigation Jump to search

Description[edit | edit source]

RemoveItem Removes Count items of object ObjectID from the calling container's inventory. It has two required parameters (the object to remove and the quantity).

Syntax[edit | edit source]

[ActorID|ContainerID.]RemoveItem ObjectID, Count, MessageHiddenFlag

Examples[edit | edit source]

buddyref.RemoveItem Lockpick 11

Buddy loses 11 lockpicks


Notes[edit | edit source]

  • You can use a FormList as the item parameter - in this case, the function removes the count for each item in the list.

See Also[edit | edit source]

AddItem
GetItemCount
RemoveAllItems


Papyrus Version[edit | edit source]

ObjectReference.RemoveItem (Papyrus)