yeah and you forgot to set the raise_built flag or it will be incompatible with turret shields or uniturret for example
newTurret = turretSurface.create_entity{
name=turret.name, position=turretPosition,
force = turretForce,
direction=turretDirection,
quality=turret.quality.next,
raise_built=true,
}
Would this fix it?