SetNthIngredient - ConstructibleObject
SKSE Member of: ConstructibleObject Script
Sets the Nth Ingredient of a ConstructibleObject to the specified Form. (This function requires SKSE)
SyntaxEdit
Function SetNthIngredient(Form Ing, Int n) native
ParametersEdit
- Ing : the new Form of the Ingredient
- n : the Nth Ingredient of the ConstructibleObject
Return ValueEdit
None
ExamplesEdit
; Replaces in RecipeArmorIronCuirass LeatherStrips by DaedraHeart & IngotIron by IngotSteel
ConstructibleObject Recipe = RecipeArmorIronCuirass
Recipe.SetNthIngredient(DaedraHeart, 0)
RecipeArmorIronCuirass.SetNthIngredient(IngotSteel, 1)
; Replaces the n Ingredient of a recipe by a corresponding Form from a FormList
(ConstructibleObjectList.GetAt(i) as ConstructibleObject).SetNthIngredient(IngotList.GetAt(i), n)
NotesEdit
This function does not allow to create new Ingredients, it can only replace existing ones.