GetNumIngredients - ConstructibleObject

SKSE Member of: ConstructibleObject Script

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

SyntaxEdit

Int Function GetNumIngredients() native

ParametersEdit

None

Return ValueEdit

Returns the number of Ingredients of a ConstructibleObject as Int.

ExamplesEdit

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

NotesEdit

None

See AlsoEdit