Jump to content

GetFormRecipes - How do I use this?


GamerRick

Recommended Posts

Here is the Wiki page for the GetFormRecipes script command.

 

What is this command supposed to do? I want to get an array list of all recipes that would take a specific ammo piece.

 

So, I am doing this:

let RecipesForThisAmmo := GetFormRecipes itemAmmo

For example if the itemAmmo is a 10mm bullet (Ammo10mm,), I want it to return the recipe RecipeBreakdown10mm.as the only array element. I tried setting the category to BreakdownSubRecipes, but it doesn't work.

 

The array always returns with a size of 0.

 

Thanks.

 

EDIT: Finally figured out that I need to get the base object of the itemAmmo. It doesn't work with a refid that you get looping through items in a container.

Edited by GamerRick
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...