Moon_chilD 200 Posted November 11, 2018 Hey guys, I currently ran into a problem. While my understanding of scripting and configs gets better and better I sometimes still get stuck when it comes to inheritance. For a faction, I want to retexture the Taru (O_Heli_Transport_04_F) and add my own units into it. That all is no problem except for the Loadmaster Slot. It still has a CSAT Crew in it. I know why: The Heli has a...Sub-Class (are they called Sub-Class?) called Turrets and in that a Sub-Class LoadmasterTurret. I only want to change the "gunnerType = "O_helicrew_F";" to something else. How would I now correctly inherit from "O_Heli_Transport_04_F", "Turrets" and "LoadmasterTurret" to do what I want? Many Greetings Moony Share this post Link to post Share on other sites
mallinga 4 Posted January 23, 2021 Hi, I recently had the same difficulties. Just sharing my solution for the Taru Bench, where you have to inherit the cargo turrets, too. For all the other Tarus you just need to declare Copilot and Loadmaster turret. Spoiler class O_Heli_Transport_04_bench_F; // original Taru (Bench) class New_Heli_Base_F: O_Heli_Transport_04_bench_F // new Taru base1 class to declare turret class { displayName = "New_Heli_Base_F"; scope = 0; class Turrets; }; class New_Heli_Base_H: New_Heli_Base_F // new Taru base2 class to declare the turrets to be changed and the cargo turrets to inherit { class Turrets: Turrets { class CopilotTurret; class LoadmasterTurret; class CargoTurret_01; class CargoTurret_02; class CargoTurret_03; class CargoTurret_04; class CargoTurret_05; class CargoTurret_06; class CargoTurret_07; class CargoTurret_08; }; }; class New_Heli_F: New_Heli_Base_H // your new Taru Bench { // bla bla bla (chaning parameters of your choice here) HiddenSelectionsTextures[]= { "\youreTexturePath", "\youreTexturePath", "\A3\Air_F_Heli\Heli_Transport_04\Data\Heli_Transport_04_bench_CO.paa" }; class Turrets: Turrets { class CopilotTurret: CopilotTurret { gunnerType = "yourGuyHere"; }; class LoadmasterTurret: LoadmasterTurret { gunnerType = "yourGuyHere"; }; class CargoTurret_01: CargoTurret_01 {}; class CargoTurret_02: CargoTurret_02 {}; class CargoTurret_03: CargoTurret_03 {}; class CargoTurret_04: CargoTurret_04 {}; class CargoTurret_05: CargoTurret_05 {}; class CargoTurret_06: CargoTurret_06 {}; class CargoTurret_07: CargoTurret_07 {}; class CargoTurret_08: CargoTurret_08 {}; }; }; Share this post Link to post Share on other sites