GetKeywordItemCount

From the CreationKit Wiki
Jump to navigation Jump to search

Description[edit | edit source]

Returns the number of items in the actor's inventory with the specified keyword on them. It also works for containers.

Syntax:[edit | edit source]

GetKeywordItemCount KeywordID

Examples:[edit | edit source]

GetKeywordItemCount 000917e7 (VendorItemArrow)  ;returns the number of items in the actor's inventory that have the VendorItemArrow keyword

See Also[edit | edit source]

AddItem
RemoveItem
GetItemCount

Papyrus Version[edit | edit source]

ObjectReference.GetItemCount (Papyrus)