GetNthIngredient - ConstructibleObject

From Creation Kit
Jump to: navigation, search

SKSE Member of: ConstructibleObject Script

Returns the Nth Ingredient of a ConstructibleObject as Form. (This function requires SKSE)

Syntax

Form Function GetNthIngredient(Int n) native

Parameters

  • n : the Nth Ingredient of the ConstructibleObject

Return Value

Returns the Nth Ingredient of a ConstructibleObject as Form.

Examples

ConstructibleObject Recipe = RecipeArmorIronCuirass
Form Ing01 = Recipe.GetNthIngredient(0) ; Ing01 = LeatherStrips
MiscObject Ingot = RecipeArmorIronCuirass.GetNthIngredient(RecipeArmorIronCuirass.GetNumIngredients - 1) as MiscObject ; Ingot = IngotIron

Notes

None

See Also