GetNumIngredients - ConstructibleObject

From Creation Kit
Jump to: navigation, search

SKSE Member of: ConstructibleObject Script

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

Syntax

Int Function GetNumIngredients() native

Parameters

None

Return Value

Returns the number of Ingredients of a ConstructibleObject as Int.

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

Notes

None

See Also