Description
Wiki Description
Returns how many of the specified components are in this reference's inventory.
Documentation Comment
Returns how many of the specified components are in this object reference's inventory
If None is passed, it counts every component in the inventory
Caveats
Parameters
FormakItem=NONE
CK Wiki Description
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
Examples
if (Game.GetPlayer().GetComponentCount( c_Concrete ) == 0)
Debug.Trace("Player has no concrete")
endIfAuto-Generated Example
Form myForm__akItem
int returnedValue = myObjectReference__toCallFunctionOn.GetComponentCount(myForm__akItem)Related Pages
Additional References
View this function’s page on the Fallout 4 Creation Kit Wiki
