BadHabitz 235 Posted January 6, 2014 I'm making a NATO version of an AAF vehicle, which is easy enough for me to do. What I'd like to do is add another ammo type for the main turret. Problem is when I put in the subclasses I get errors saying I have an undefined blase class. When I define that base class it tells me that it's already defined. What am I doing wrong. I double checked to make sure my entire config was devoid of open brackets. Other than that I'm not sure what's going on. File p:\my_addons\vehicles\lav\config.cpp, line 111: /CfgVehicles/lav.Turrets: Undefined base class 'Turrets' class Turrets: Turrets { class MainTurret: MainTurret { magazines[] = {"40RND_30mm_W_HE_shells", "140Rnd_30mm_MP_shells_Tracer_Yellow"}; }; }; Share this post Link to post Share on other sites
UNN 0 Posted February 4, 2014 (edited) You need to inherit the turret from the vehicle class you are inheriting for your vehicle :) Or, in other words, something like: class GMG_TriPod; class GMG_01_base_F : GMG_TriPod { class MainTurret; }; class my_tripod : GMG_01_base_F { class Turrets { class MainTurret : MainTurret { magazines[] = {"40RND_30mm_W_HE_shells", "140Rnd_30mm_MP_shells_Tracer_Yellow"}; }; }; }; So in the above example, the my_tripod will now inherit the mainTurret class from GMG_01_base_F. Edited February 4, 2014 by UNN Share this post Link to post Share on other sites
UNN 0 Posted February 7, 2014 Actually see this thread for a more comprehensive answer. The class names may have changed since it's from Arma2, but the principle remains the same: -Inherit-static-weapon-turret Share this post Link to post Share on other sites
alexboy 11 Posted February 7, 2014 base classes are the same of Arma 2 or atleast in how far I have been able to get into it, I have used NewTurret more often because most of the time I dont know whats being inherited... but you can use MainTurret like UNN said my way class NewTurret; class Turrets { class MainTurret: NewTurret { magazines[] = {"40RND_30mm_W_HE_shells", "140Rnd_30mm_MP_shells_Tracer_Yellow"}; }; }; Share this post Link to post Share on other sites
UNN 0 Posted February 8, 2014 I have used NewTurret more often because most of the time I dont know whats being inherited In this case he wanted to inherit directly from a specific turret. But the alternative method by Scars09 that I linked, might be a better solution. I really need to double check to see if the one I posted, does in fact inherit all the properties from all the base classes. Share this post Link to post Share on other sites