GetKeywordItemCount

From the CreationKit Wiki
Revision as of 17:10, 2 December 2011 by imported>Scornett-Bot (Script running global find and replace: = for '''=)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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)