Mod:Creation Kit/GetComponentCount - ObjectReference

Mod:Creation Kit/Category:Scripting Mod:Creation Kit/Category:Papyrus Member of: Mod:Creation Kit/ObjectReference Script

Returns how many of the specified components are in this reference's inventory.

Parameters

 * akItem: The component to look for in this reference's inventory.
 * If a component, will look for misc items that contain this component.
 * If a form list, it will count how many of each component in the form list is in the container and sum it all up
 * If None, will count how many components are in the container in total
 * Default: None

Return Value
How many of said components are in this reference's inventory.