swtx 42 Posted June 20, 2014 (edited) Okay Guys, I'm trying to change the Recoiless Rifle from the Arma II UAZ port to a real recoiless rifle, not a missle launcher. Im getting a undefined class error when I try to start the mod. With this in mind, i have searched the forums and I did get some posts from ARMA II OA. I have read through them and the only thing I can come up with is that the class i'm trying to implement is not defined. I'm going to post the code I'm having trouble with below. Please show me by example how to define the class properly. It's cannon_120mm and the code is: class SPG9 : cannon_105mm { scope = 1; displayName = SPG9; modelOptics = ""; magazines[] = {PG9_AT, OG9_HE}; reloadTime = 3; cursor = "EmptyCursor"; cursorAim = "rocket"; cursorSize = 1; }; Any help or suggestions would be appreciated Edited June 20, 2014 by swtx Share this post Link to post Share on other sites
swtx 42 Posted June 21, 2014 I'm having a CFGMagazines/: A encountered instead of { cfg is posted here: class cannon_105mm { scope = 1; displayName = SPG9; modelOptics = ""; magazines[] = { 40Rnd_105mm_APFSDS_T_Red, 20Rnd_105mm_HEAT_MP_T_Red }; reloadTime = 3; cursor = "EmptyCursor"; cursorAim = "rocket"; cursorSize = 1; }; class CfgMagazines { class Default; // External class reference class CA_Magazine; // External class reference class VehicleMagazine; // External class reference class CA_LauncherMagazine; // External class reference class 40Rnd_105mm_APFSDS_T_Red; // External class reference class 20Rnd_105mm_HEAT_MP_T_Red; // External class reference class 100Rnd_127x107_DSHKM : VehicleMagazine { scope = 2; displayName = "100Rnd 127x107"; ammo = "B_127x107_Ball"; count = 100; initSpeed = 850; maxLeadSpeed = 200; tracersEvery = 3; lastRoundsTracer = 5; nameSound = "mgun"; }; class 105mm APFSDS - T { scope = 2; displayName = PG9 AT; ammo = R_PG9_AT; count = 6; }; class 105mm HEAT-MP-T { scope = 2; displayName = OG9 HE; ammo = R_OG9_HE; count = 6; }; }; Share this post Link to post Share on other sites
surpher 1 Posted June 22, 2014 No spaces in classNames allowed. Share this post Link to post Share on other sites