I’m using turrets that have two parts - the barrels and the main body. What I want them to do is both turn together (i guess the Head Look Controller can do that) but the barrels to also go up and down without the main body.
I have such an example in my C&C Generals project here:
http://forum.unity3d.com/viewtopic.php?t=18802&highlight=generals
Look into pivot points. Change them.
Ok, but then how do I make them automatically aim for the nearest target, but, if aiming at their own parent not to be able to fire?
You can use a raycast in the direction of the gun to detect what it is pointing at and disallow firing if it’s the parent object. If you can post your script, it would be easier to suggest actual code you could use.