Jump to content

Recommended Posts

So im trying to make a coconut that can go in your inventory and sit on the ground and I cant figure out how to make it show up in the editor and under miscellaneous in arsenal

 

Here is my config File:

 


class CfgPatches
{
    class rev_inv_coconut
    {
        displayName="Coconut";
        scope=2;
        mass=0;
        author="Noskie";
        picture="\@Coconut\icons\coconut_icon.paa";
        model="\@Coconut\objects\cocanut thingy.p3d";
        icon="@Coconut\icons\coconut_icon.paa";
        descriptionShort="A Coconut thingy";
        
        weapons[] =
        {
            "rev_inv_coconut"
        };
    };
};

 

Any help would be greatly appreciated. I am also very new to this so sorry if the answer is totally obvious.

Share this post


Link to post
Share on other sites

You try to declare an object in CfgPatches, but it needs to go into CfgWeapons (if you want it to be a weapon). See https://community.bistudio.com/wiki/CfgPatches for a correct patches  class. Setting up a weapon is a bit involved (see https://community.bistudio.com/wiki/CfgWeapons_Config_Reference), you probably want to check an existing weapon config and use that as template. It might be easier to start with a CfgVehicles ThingX, but that won't go in your inventory. Good luck.

  • Thanks 1

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×