GetItemCount

From the CreationKit Wiki
Jump to navigation Jump to search

Description[edit | edit source]

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

Syntax:[edit | edit source]

GetItemCount ObjectID

Examples:[edit | edit source]

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

Notes[edit | edit source]

  • 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 Also[edit | edit source]

AddItem
RemoveItem

Papyrus Version[edit | edit source]

ObjectReference.GetItemCount (Papyrus)