Background for Skyrim SE
Member of the iEquip_ObjectReferenceExt script
intfunctionGetNumItemsOfType(ObjectReferencea_container, inta_type)NativeGlobal

Description

Documentation Comment

@brief Counts the number of items with the given form type in the given container.
@param a_container The container to search.
@param a_type The form type to search for.
@return Returns -1 on error, else returns the number of items counted.


Caveats


Parameters

ObjectReferencea_container

inta_type


Examples

Auto-Generated Example

ObjectReference myObjectReference__a_container
int myInt__a_type

int returnedValue = iEquip_ObjectReferenceExt.GetNumItemsOfType(myObjectReference__a_container, myInt__a_type)
Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.