RemoveItem

Revision as of 18:12, 2 December 2011 by imported>Scornett-Bot (Script running global find and replace: = for '''=)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

DescriptionEdit

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).

SyntaxEdit

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

ExamplesEdit

buddyref.RemoveItem Lockpick 11

Buddy loses 11 lockpicks


NotesEdit

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

See AlsoEdit

AddItem
GetItemCount
RemoveAllItems


Papyrus VersionEdit

ObjectReference.RemoveItem (Papyrus)