Jump to content
Sign in to follow this  
khamia

I need some help about weapon config

Recommended Posts

Hello, I am making my first addon.

but I have some trouble. so I need some help.

what is wrong?

Error code -> some input after end of file

class CfgPatches {

class AK_74M_T {

RequiredVersion = 1.570000;

version = 1.000000;

weapons = {};

requiredAddons = {};

units = {};

};

};

class CfgWeapons {

/*extern*/ class AK_74;

class AK_74m_T: AK_74 {

scope = 2;

model = "\KAT\ak74m_SOCOM.p3d";

modelOptics = "-";

optics = 1;

dexterity = 1.400000;

displayName = "AK74M";

picture = "\KAT\inv\ak74m.paa";

UiPicture = "\CA\weapons\data\Ico\i_regular_CA.paa";

reloadMagazineSound = {"\KAT\sound\ak74m_reload.wss", 0.056234, 1, 20};

magazines = {"30Rnd_545x39_AK", "RH_30Rnd_545x39_AKSU_mag", "30Rnd_545x39_AKSD"};

muzzles = {"RH_ak74mMuzzle"};

handAnim = {"OFP2_ManSkeleton", "\Ca\weapons_E\SCAR\Data\Anim\SCAR.rtm"};

};

class AK_74m_T_Holo: AK_74m_T {

displayName = "AK74M Holo";

model = "\KAT\ak74m_SOCOM_holo.p3d";

picture = "\KAT\inv\ak74m.paa";

};

class AK_74m_T_CCO: AK_74m_T {

displayName = "AK74M CCO";

model = "\KAT\ak74m_SOCOM_cco.p3d";

picture = "\KAT\inv\ak74m.paa";

};

};

class cfgVehicles {

/*extern*/ class ReammoBox_EP1;

class KAT_Box: ReammoBox_EP1 {

scope = 2;

accuracy = 1000;

displayName = "ATC AK74M Box";

model = "\ca\weapons\AmmoBoxes\RUBasicAmmo.p3d";

class TransportMagazines {

class _xx_30Rnd_545x39_AK {

magazine = "30Rnd_545x39_AK";

count = 100;

};

class _xx_30Rnd_545x39_AKSD {

magazine = "30Rnd_545x39_AKSD";

count = 100;

};

};

class TransportWeapons {

class _xx_AK_74m_T {

weapon = "AK_74m_T";

count = 10;

};

class _xx_AK_74m_T_Holo {

weapon = "AK_74m_T_Holo";

count = 10;

};

class _xx_AK_74m_T_CCO {

weapon = "AK_74m_T_CCO";

count = 10;

};

};

};

};

Share this post


Link to post
Share on other sites

You (or the unbin tool with the banana) killed all the poor []´s !

Each array will be more happy like that:

someentry[] = {"bla","morebla"};

edit: and take CAWeapons into requiredAddons[] = {}; aswell ;)

Edited by Mr Burns

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
Sign in to follow this  

×