• 0
MickScandalous

Weapons in Recipes

Question

I am having issues getting weapons to to be usuable in recipes. If I use the MX with spray paint to make it into a colored MX from HAP the original MX wont show up in the recipe. I can use Weapon parts and paintcan to make it but id much rather have my players use the gun and paint. ill show an example that doesnt work

 

Spoiler

    class HAP_MX_hex_green: Exile_AbstractCraftingRecipe
{
    name = "MX 6.5mm GreenHex"
    pictureItem = "HAP_MX_teal_ICON.paa";
    requiredInteractionModelGroup = "WorkBench";
    returnedItems[] = 
    {
        {1, "HAP_MX_hex_green"}
    };
    components[] = 
    {
        {1, "arifle_MX_Black_F "},
        {1, "Exile_Item_SprayCan_White"},
        {1, "Exile_Item_SprayCan_Green"}
    };
};

but this one does work though

Spoiler

    class HAP_MX_hex_green: Exile_AbstractCraftingRecipe
{
    name = "MX 6.5mm GreenHex"
    pictureItem = "HAP_MX_teal_ICON.paa";
    requiredInteractionModelGroup = "WorkBench";
    returnedItems[] = 
    {
        {1, "HAP_MX_hex_green"}
    };
    components[] = 
    {
        {3, "Exile_Item_WeaponParts"},
        {1, "Exile_Item_SprayCan_White"},
        {1, "Exile_Item_SprayCan_Green"},
        {2, "Exile_Item_DuctTape"}
    };
};

any help would be great

Edited by MickScandalous

Share this post


Link to post
Share on other sites

14 answers to this question

  • 0
14 hours ago, MickScandalous said:

I am having issues getting weapons to to be usuable in recipes. If I use the MX with spray paint to make it into a colored MX from HAP the original MX wont show up in the recipe. I can use Weapon parts and paintcan to make it but id much rather have my players use the gun and paint. ill show an example that doesnt work

 

  Hide contents

    class HAP_MX_hex_green: Exile_AbstractCraftingRecipe
{
    name = "MX 6.5mm GreenHex"
    pictureItem = "HAP_MX_teal_ICON.paa";
    requiredInteractionModelGroup = "WorkBench";
    returnedItems[] = 
    {
        {1, "HAP_MX_hex_green"}
    };
    components[] = 
    {
        {1, arifle_MX_Black_F "},
        {1, "Exile_Item_SprayCan_White"},
        {1, "Exile_Item_SprayCan_Green"}
    };
};

but this one does work though

  Hide contents

    class HAP_MX_hex_green: Exile_AbstractCraftingRecipe
{
    name = "MX 6.5mm GreenHex"
    pictureItem = "HAP_MX_teal_ICON.paa";
    requiredInteractionModelGroup = "WorkBench";
    returnedItems[] = 
    {
        {1, "HAP_MX_hex_green"}
    };
    components[] = 
    {
        {3, "Exile_Item_WeaponParts"},
        {1, "Exile_Item_SprayCan_White"},
        {1, "Exile_Item_SprayCan_Green"},
        {2, "Exile_Item_DuctTape"}
    };
};

any help would be great

Missing one "

Before the weapon classname (arifle_*)

Share this post


Link to post
Share on other sites
  • 0
32 minutes ago, xBowBii said:

Missing one "

Before the weapon classname (arifle_*)

I fixed that but still it just shows Components 

-0/1 <------This part is supposed to be the Rifle used and its just not working

Spray Can White - 0/1

Spray Can Green - 0/1

Requires

Work Bench

Returns

-[1]

Share this post


Link to post
Share on other sites
Advertisement
  • 0
43 minutes ago, xBowBii said:

Missing one "

Ive fixed that in my config but its still the same issue, If i spawn the weapon i have an option for recipes next to details. if i click it I get that which ive showed you above, still can not craft it

Share this post


Link to post
Share on other sites
  • 0
Spoiler

    class HAP_MX_hex_green: Exile_AbstractCraftingRecipe
{
    name = "MX 6.5mm GreenHex"
    pictureItem = "HAP_MX_teal_ICON.paa";
    requiredInteractionModelGroup = "WorkBench";
    returnedItems[] = 
    {
        {1, "HAP_MX_hex_green"}
    };
    components[] = 
    {
        {1, "arifle_MX_F"},
        {1, "Exile_Item_SprayCan_White"},
        {1, "Exile_Item_SprayCan_Green"}
    };
};

even switching to this weapon and the same with the DMR, it just doesnt work. what am I doing wrong? @kuplion

Share this post


Link to post
Share on other sites
  • 0

In my personal experience you cannot use any of the core ARMA 3 components like clothing, weapons or weapon accessories in the recipes. I personally limited my recipes to the Exile items and any from 3rd party mods that were meant to be used for crafting (Exile Items, CDAH's vehicle mod etc.).

I'll keep an eye on this thread though in case you get it working..... :)  I'd love to change some of my recipes!

  • Like 1

Share this post


Link to post
Share on other sites
  • 0
1 hour ago, Riker2335 said:

In my personal experience you cannot use any of the core ARMA 3 components like clothing, weapons or weapon accessories in the recipes. I personally limited my recipes to the Exile items and any from 3rd party mods that were meant to be used for crafting (Exile Items, CDAH's vehicle mod etc.).

I'll keep an eye on this thread though in case you get it working..... :)  I'd love to change some of my recipes!

I've never been able to get weapons and other default Arma3 objects working in recipe as "component" (such as, I tried to get basic MX crafted with like a metal pole and some other stuff to upgrade to GL class).

I think it's kind of a limitation but can't find code that excludes those items either so far from looking around.

Edited by yukihito23

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.