Background for Skyrim SE
Member of the ConstructibleObject script
intfunctionGetNumIngredients()Native

Description

Wiki Description

Returns the number of Ingredients of a ConstructibleObject as Int. (This function requires SKSE)

Documentation Comment

Gets the number of ingredients


Caveats

CK Wiki - Notes

None


Examples

Int IngNum = RecipeArmorIronCuirass.GetNumIngredients() ; IngNum = 2

; Iteration through all Ingredients, beginning by the last
Int i = RecipeArmorIronCuirass.GetNumIngredients() - 1
WHILE i > -1
if ( RecipeArmorIronCuirass.GetNthIngredient(i) )
; Do something
endif
i -= 1
EndWHILE

Auto-Generated Example

int returnedValue = myConstructibleObject__toCallFunctionOn.GetNumIngredients()

Related Pages


Additional References

View this function’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.