icewindo 29 Posted April 12, 2013 Hi, I have a problem with properly referencing turrets of a static weapon. I want to create a new static weapon based on the OA M2 MG. I searched around abit and could only find threads on vehicles - I used this example by kju for my vehicles and it works great: class CfgVehicles { class Wheeled_APC; class BRDM2_Base: Wheeled_APC { class Turrets; }; class BRDM2_CDF: BRDM2_Base { class Turrets: Turrets { class MainTurret; }; }; class RUG_HD_BRDM2_CDF: BRDM2_CDF { displayName = "CDF HD BRDM2"; faction = "RUG_HD_CDF"; crew = "RUG_HD_CDF_Soldier_Crew"; class Turrets: Turrets { class MainTurret: MainTurret { weapons[] = {"RUG_HD_KPVT","RUG_HD_PKT"}; }; }; }; ( http://www.ofpec.com/forum/index.php?topic=34666.0 ) But applied to the static weapon it won't work - I get errors about missing entries in the turret configuration. I'm using this config: class CfgVehicles { class StaticMGWeapon; class M2StaticMG_base: StaticMGWeapon { class Turrets; }; class M2StaticMG_US_EP1: M2StaticMG_base { class Turrets: Turrets { class MainTurret; }; } class new_weapon_static: M2StaticMG_US_EP1 { scope = 2; displayName = "New wep"; model = "\bla\bla.p3d"; faction = "some_faction"; crew = "some_dude"; typicalCargo[] = {"some_dude"}; class Turrets: Turrets { class MainTurret: MainTurret { minElev = -20; weapons[] = {"uberWeapon"}; magazines[] = {"UberAmmo","UberAmmo","UberAmmo","UberAmmo"}; gunnerAction = "M2_Gunner"; }; }; }; }; Any hints :) ? Share this post Link to post Share on other sites
scars09 9 Posted April 13, 2013 class LandVehicle; class StaticWeapon: LandVehicle { class Turrets; }; class StaticMGWeapon: StaticWeapon { class Turrets: Turrets { class MainTurret; }; }; and i would go from there on with your own, everything u inherit after that is stuff u prolly gonna change anyway, displayname, weapon, magazines, gunner animation, stuff like that. Share this post Link to post Share on other sites
icewindo 29 Posted April 15, 2013 Thanks Scars, that worked great. Turret defs really give me the creeps :) Share this post Link to post Share on other sites