GetNumIngredients - ConstructibleObject
Jump to navigation
Jump to search
SKSE Member of: ConstructibleObject Script
Returns the number of Ingredients of a ConstructibleObject as Int. (This function requires SKSE)
Syntax[edit | edit source]
Int Function GetNumIngredients() native
Parameters[edit | edit source]
None
Return Value[edit | edit source]
Returns the number of Ingredients of a ConstructibleObject as Int.
Examples[edit | edit source]
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
Notes[edit | edit source]
None