swtx 42 Posted July 12, 2014 Having a error message in a custom config. Any suggestions and help is appreciated. enum { DESTRUCTENGINE = 2, DESTRUCTDEFAULT = 6, DESTRUCTWRECK = 7, DESTRUCTTREE = 3, DESTRUCTTENT = 4, STABILIZEDINAXISX = 1, STABILIZEDINAXESXYZ = 4, STABILIZEDINAXISY = 2, STABILIZEDINAXESBOTH = 3, DESTRUCTNO = 0, STABILIZEDINAXESNONE = 0, DESTRUCTMAN = 5, DESTRUCTBUILDING = 1, }; class CfgPatches { class A3_Weapons_F_Pistols_Rook40 { units[] = {}; weapons[] = {"hgun_Rook40_F", ""}; requiredVersion = 0.1; requiredAddons[] = {"A3_Weapons_F"}; }; }; class Mode_SemiAuto; // External class reference class Mode_FullAuto; // External class reference class CfgWeapons { class Pistol; // External class reference class Pistol_Base_F : Pistol { }; class hgun_Rook40_F : Pistol_Base_F { scope = 0; magazines[] = {"30Rnd_9x21_Mag", "16Rnd_9x21_Mag"}; displayname = "ROOK 40 SF"; discreteDistance[] = {100, 200}; discreteDistanceInitIndex = 0; descriptionShort = "$STR_A3_CfgWeapons_hgun_P071"; reloadAction = "GestureReloadPistol"; opticsZoomMin = 0.375; opticsZoomMax = 1.1; opticsZoomInit = 0.75; distanceZoomMin = 50; distanceZoomMax = 50; bullet1[] = {"A3\sounds_f\weapons\shells\9mm\metal_9mm_01", 0.1, 1, 15}; bullet2[] = {"A3\sounds_f\weapons\shells\9mm\metal_9mm_02", 0.1, 1, 15}; bullet3[] = {"A3\sounds_f\weapons\shells\9mm\metal_9mm_03", 0.177828, 1, 15}; bullet4[] = {"A3\sounds_f\weapons\shells\9mm\metal_9mm_04", 0.177828, 1, 15}; bullet5[] = {"A3\sounds_f\weapons\shells\9mm\dirt_9mm_01", 0.1, 1, 15}; bullet6[] = {"A3\sounds_f\weapons\shells\9mm\dirt_9mm_02", 0.1, 1, 15}; bullet7[] = {"A3\sounds_f\weapons\shells\9mm\dirt_9mm_03", 0.1, 1, 15}; bullet8[] = {"A3\sounds_f\weapons\shells\9mm\dirt_9mm_04", 0.1, 1, 15}; bullet9[] = {"A3\sounds_f\weapons\shells\9mm\grass_9mm_01", 0.01, 1, 15}; bullet10[] = {"A3\sounds_f\weapons\shells\9mm\grass_9mm_02", 0.01, 1, 15}; bullet11[] = {"A3\sounds_f\weapons\shells\9mm\grass_9mm_03", 0.01, 1, 15}; bullet12[] = {"A3\sounds_f\weapons\shells\9mm\grass_9mm_04", 0.01, 1, 15}; soundBullet[] = {"bullet1", 0.083, "bullet2", 0.083, "bullet3", 0.083, "bullet4", 0.083, "bullet5", 0.083, "bullet6", 0.083, "bullet7", 0.083, "bullet8", 0.083, "bullet9", 0.083, "bullet10", 0.083, "bullet11", 0.083, "bullet12", 0.083}; changeFiremodeSound[] = {"A3\sounds_f\weapons\closure\firemode_changer_1", 0.251189, 1, 10}; modes[] = {"Single", "FullAuto"}; class Single : Mode_SemiAuto { begin1[] = {"A3\Sounds_F\weapons\SMG_02\SMG_02_st_1b", 2, 1, 600}; begin2[] = {"A3\Sounds_F\weapons\SMG_02\SMG_02_st_2b", 2, 1, 600}; begin3[] = {"A3\Sounds_F\weapons\SMG_02\SMG_02_st_3b", 2, 1, 600}; soundBegin[] = {"begin1", 0.5, "begin2", 0.5}; closure1[] = {"A3\sounds_f\weapons\closure\closure_handgun_3", 1.41254, 1, 10}; closure2[] = {"A3\sounds_f\weapons\closure\closure_handgun_3", 1.41254, 1.1, 10}; soundClosure[] = {"closure1", 0.5, "closure2", 0.5}; weaponSoundEffect = "DefaultRifle"; reloadTime = 0.0545; recoil = "recoil_single_pdw"; recoilProne = "recoil_single_prone_pdw"; dispersion = 0.065; minRange = 2; minRangeProbab = 0.3; midRange = 200; midRangeProbab = 0.7; maxRange = 350; maxRangeProbab = 0.05; aiRateOfFire = 2.0; aiRateOfFireDistance = 500; }; class FullAuto : Mode_FullAuto { begin1[] = {"A3\Sounds_F\weapons\SMG_02\SMG_02_st_1b", 2, 1, 600}; begin2[] = {"A3\Sounds_F\weapons\SMG_02\SMG_02_st_2b", 2, 1, 600}; begin3[] = {"A3\Sounds_F\weapons\SMG_02\SMG_02_st_3b", 2, 1, 600}; soundBegin[] = {"begin1", 0.5, "begin2", 0.5}; closure1[] = {"A3\sounds_f\weapons\closure\closure_handgun_3", 1.25893, 1, 10}; closure2[] = {"A3\sounds_f\weapons\closure\closure_handgun_3", 1.25893, 1.1, 10}; soundClosure[] = {"closure1", 0.5, "closure2", 0.5}; weaponSoundEffect = "DefaultRifle"; reloadTime = 0.06; recoil = "recoil_auto_pdw"; recoilProne = "recoil_auto_prone_pdw"; dispersion = 0.095; minRange = 0; minRangeProbab = 0.1; midRange = 25; midRangeProbab = 0.7; maxRange = 70; maxRangeProbab = 0.05; aiRateOfFire = 0.2; aiRateOfFireDistance = 50; }; drySound[] = {"A3\sounds_f\weapons\other\dry1", 0.1, 1, 20}; reloadMagazineSound[] = {"A3\sounds_f\weapons\pistols\rook40_reload_final", 1.0, 1, 10}; }; }; }; Share this post Link to post Share on other sites
das attorney 857 Posted July 12, 2014 Try changing: scope = 0; to scope = 2; Share this post Link to post Share on other sites
swtx 42 Posted July 12, 2014 That did the trick, Thanks a million :cool: Share this post Link to post Share on other sites