Jump to content
TiraNek

Help with Error vest config

Recommended Posts

Hi, i created vest config to my addon. Dont work a3 give me error.

https://gyazo.com/3f1e783e864267aafff005e1d02a1c34

 

Config:

Spoiler

class CfgPatches {
    class 4_IB {
        requiredAddons[] = {"A3_Characters_F"};
        requiredVersion = 1.0;
        units[] = {};
        weapons[] = {};
    };
};

class cfgWeapons
{
class ItemCore;
class Vest_Camo_Base: ItemCore
{
class ItemInfo;
};
class Vest_Lubawa: Vest_Camo_Base
{
author = "TiraN";
scope = 2;
displayName = "Vest Lubawa";
picture = "\A3\characters_f\Data\UI\icon_V_BandollierB_CA.paa";
model = "Pa_eq\lubawa.p3d";
hiddenSelectionsTextures[] = {"Pa_eq\lubawa\lub.paa"};
class ItemInfo: ItemInfo
{
uniformModel = "Pa_eq\lubawa.p3d";
containerClass = Supply80;
mass = 15;
class HitpointsProtectionInfo
            {
                class Neck
                {
                    hitpointName    = "HitNeck"; // reference to the hit point class defined in the man base class
                    armor       = 8; // addition to armor of referenced hitpoint
                    passThrough = 0.5; // multiplier of base passThrough defined in referenced hitpoint
                };
                class Arms
                {
                    hitpointName    = "HitArms";
                    armor       = 8;
                    passThrough = 0.5;
                };
                class Chest
                {
                    hitpointName    = "HitChest";
                    armor       = 24;
                    passThrough = 0.1;
                };
                class Diaphragm
                {
                    hitpointName    = "HitDiaphragm";
                    armor       = 24;
                    passThrough = 0.1;
                };
                class Abdomen
                {
                    hitpointName    = "HitAbdomen";
                    armor       = 24;
                    passThrough = 0.1;
                };
                class Body
                {
                    hitpointName    = "HitBody";
                    passThrough = 0.1;
            };
        };
    };
};

 

 

Share this post


Link to post
Share on other sites

Missing the final closing brace for CfgWeapons, as class Body 's closing brace has the wrong indent.

Yours

				class Body {
					hitpointName    = "HitBody";
					passThrough = 0.1;
				
			};
		};
	};
}; 

Corrected

				class Body {
					hitpointName    = "HitBody";
					passThrough = 0.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

×