gabberxxl 9 Posted September 21, 2017 I tried to modify the existing B_SAM_System_01_F to be able to shoot Titan-AT rockets (for testing purpose, of course) This is the cfg I wrote: class B_SAM_System_01_F; // External class reference class O_SAM_System_01_F : B_SAM_System_01_F { crew = "O_UAV_AI"; typicalCargo[] = {"O_UAV_AI"}; side = 0; displayName = "3K95 Kinzhal"; faction = OPF_F; }; class B_AT_System_01_F : B_SAM_System_01_F { displayName = "Mk49 Velos"; class AnimationSources { class Missiles_revolving { source = "revolving"; weapon = "missiles_titan_static"; }; }; class Turrets:Turrets { class MainTurret:MainTurret{ magazines[] = {"1Rnd_GAT_missiles","1Rnd_GAT_missiles","1Rnd_GAT_missiles","1Rnd_GAT_missiles","1Rnd_GAT_missiles","1Rnd_GAT_missiles","1Rnd_GAT_missiles","1Rnd_GAT_missiles","1Rnd_GAT_missiles","1Rnd_GAT_missiles","1Rnd_GAT_missiles","1Rnd_GAT_missiles","1Rnd_GAT_missiles","1Rnd_GAT_missiles","1Rnd_GAT_missiles","1Rnd_GAT_missiles","1Rnd_GAT_missiles","1Rnd_GAT_missiles","1Rnd_GAT_missiles","1Rnd_GAT_missiles","1Rnd_GAT_missiles"}; weapons[] = {"missiles_titan_static"}; }; }; }; The upper part, the OPFOR variant of the SAM turret works flawlessly. But the lower part that modifies the SAM to shoot AT Rockets doesn't work at all. This is the Error im getting: 23:38:03 Warning Message: No entry 'bin\config.bin/CfgVehicles/B_AT_System_01_F/Turrets/MainTurret.primaryGunner'. 23:38:03 Warning Message: '/' is not a value 23:38:03 Warning Message: No entry 'bin\config.bin/CfgVehicles/B_AT_System_01_F/Turrets/MainTurret.Turrets'. 23:38:03 Warning Message: No entry 'bin\config.bin/CfgVehicles/B_AT_System_01_F/Turrets/MainTurret.primaryObserver'. 23:38:03 Warning Message: '/' is not a value 23:38:03 Warning Message: No entry 'bin\config.bin/CfgVehicles/B_AT_System_01_F/Turrets/MainTurret.Turrets'. It seems to fail to load the base class child B_SAM_System_01_F >> Turrets >> MainTurret. Any help would be appreciated! Share this post Link to post Share on other sites
x3kj 1247 Posted September 21, 2017 Quote It seems to fail to load the base class child Precisely, because before you can inherit from a subclass (e.g. Turrets:Turrets) you need to declare it as well in the external class reference. Share this post Link to post Share on other sites
gabberxxl 9 Posted September 22, 2017 22 hours ago, x3kj said: Precisely, because before you can inherit from a subclass (e.g. Turrets:Turrets) you need to declare it as well in the external class reference. And how do I do it correctly? Like this? class B_SAM_System_01_F { // External class reference class Turrets:Turrets { class MainTurret; }; }; Share this post Link to post Share on other sites