- Found in:
- SKSE
Description
Wiki Description
Sets the Nth Ingredient of a ConstructibleObject to the specified Form. (This function requires SKSE)
Caveats
CK Wiki - Notes
This function does not allow to create new Ingredients, it can only replace existing ones.
Parameters
Formrequired
CK Wiki Description
the new Form of the Ingredient
intn
CK Wiki Description
the Nth Ingredient of the ConstructibleObject
Examples
; 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)Auto-Generated Example
Form myForm__required
int myInt__n
myConstructibleObject__toCallFunctionOn.SetNthIngredient(myForm__required, myInt__n)