Subsystem Turret not turning [Solved]

so I have been working on a personal mod and I found a weird issue… I created a turret subsystem, the hardpoints on the ship, etc etc… when in game they work… but the turrets do not turn around… thus the only way the ship can fire, is by turning whole to aim at the target… anyone have any idea what could be causing this?

I have done this before and it worked but now it dosnt… I don’t know what I am missing…

added the code for the weapon and subsystem as well the joint hierarchy :

NewSubSystemType = StartSubSystemConfig()
NewSubSystemType.displayedName = "Autogun"
NewSubSystemType.sobDescription = "Anti Fighter"
NewSubSystemType.tacticalIcon = "hexagon"
NewSubSystemType.tacticalIconMinSize = 0.0035
NewSubSystemType.tacticalIconMinFadeSize = 0.0045
NewSubSystemType.tacticalIconMaxFadeSize = 0.008
NewSubSystemType.groupMergeSize = 0.001
NewSubSystemType.mouseOverMinFadeSize = 0.045
NewSubSystemType.mouseOverMaxFadeSize = 0.1
NewSubSystemType.maxhealth = 14000
NewSubSystemType.regentime = 250
NewSubSystemType.nlips = 0
NewSubSystemType.nlipsRange = 0
NewSubSystemType.nlipsFar = 0
NewSubSystemType.nlipsFarRange = 0
NewSubSystemType.meshRenderLimit = 0.004
NewSubSystemType.minimumZoomFactor = 0.6800000000000001
NewSubSystemType.selectionLimit = 5000
NewSubSystemType.preciseATILimit = 5000
NewSubSystemType.selectionPriority = 37.5
NewSubSystemType.type = "Weapon"
NewSubSystemType.typeString = "Turret_Tel"
NewSubSystemType.collateralDamage = 100
NewSubSystemType.inactiveTimeAfterDamage = 80
NewSubSystemType.activateHealthPercentage = 0.1
NewSubSystemType.costToBuild = 200
NewSubSystemType.timeToBuild = 20
NewSubSystemType.isResearch = 0
NewSubSystemType.visible = 1
LoadHODFile(NewSubSystemType,1)
NewSubSystemType.BuildFamily = "SubSystem_Tel"
NewSubSystemType.AttackFamily = "SubSystem"
NewSubSystemType.DockFamily = "CantDock"
NewSubSystemType.DisplayFamily = "SubSystemModule"
NewSubSystemType.ArmourFamily = "SubSystemArmour"
StartSubSystemWeaponConfig(NewSubSystemType,“Light_AutogunTurret”,“Weapon_Turret”,“Weapon_TurretTop”)

StartWeaponConfig(NewWeaponType,“AnimatedTurret”,“Missile”,“Small_Autogun”,“Normal”,2000,2000,0,0,0,0,1,1,0,0.2,0,0,0,0,0,0,0.1,“Normal”,0,0,0);
AddWeaponResult(NewWeaponType,“Hit”,“DamageHealth”,“Target”,5,5,"");
setPenetration(NewWeaponType,5,1,
{Unarmoured=1},
{LightArmour=0.75},
{MediumArmour=0.5},
{HeavyArmour=0.25},
{SubSystemArmour=0.5});
setAccuracy(NewWeaponType,1);
setAngles(NewWeaponType,10,-180,180,-5,45);
setMiscValues(NewWeaponType,0.1,0.1);
addAnimTurretSound(NewWeaponType,“Data:Sound/SFX/ETG/SPECIAL/SPECIAL_ABILITIES_TURRET_ON”);

HOD Join hierarchy:
Root --> Weapon_turret_Position—>Weapon_Turret_Rest,Weapon_Turret_Direction,Weapon_Turret_Latitude --> Weapon_Turret_Muzzle
Mesh Parents:
turret parent Weapon_Turret_Position (Horizontal Aiming)
Barrel parent Weapon_Turret_Muzzle (vertical aiming)

it looks like a missile is being fired, I believe there is a special launch angle consideration, try it with a different weapon first to make sure the turret works

i did try with a bullet type projectile, the missile is the old ballistic hack. but it still didn’t turn the turret

so anyone? D: I really need to fix this…

Sorry, I should have answered this since you posted it, Your turret turning rate is “0” change it for something else, the units are the two numbers before the 0.1 at the end of the StartWeaponConfig line, x,y respectively, its in degrees per second so, you figure what could work for you.

it should end like this for example:
10,10.1,“Normal”,0,0,0);

1 Like

thanks… now I feel like such a ■■■■■■■ idiot… I can’t believe I forgot to set this up… yeah I know how it works I can’t believe I forgot to fix that…

can someone lock this thread so the shame washes away slowly?

Sorry, I should have answered this since you posted it, Your turret turning rate is “0” change it for something else, the units are the two numbers before the 0.1 at the end of the StartWeaponConfig line, x,y respectively, its in degrees per second so, you figure what
[/quote]

No need to feel ashamed, we all make silly mistakes. Someone will he able to learn from this, so I suggest you change the title of the thread to have “[solved]” in it.