GetItemCount

DescriptionEdit

Returns the number of ObjectID in the actor's inventory. It also works for containers.

Syntax:Edit

GetItemCount ObjectID

Examples:Edit

GetItemCount 0001397D (Iron Arrow)  ;returns the number of Iron Arrows the Actor currently has

NotesEdit

  • You can use a reference variable as ObjectID.
  • You can use a FormList as the item parameter -- in this case, the function returns the sum of the counts for all items in the list.

See AlsoEdit

AddItem
RemoveItem

Papyrus VersionEdit

ObjectReference.GetItemCount (Papyrus)