This problem is actually part of another thread, but the thread wasn't opened by me and I would like to add something too, so I made a new one.
I've currently hit a brick wall in my progress because a problem I thought that was fixed isn't really fixed and I have been unable to solve the problem for several days. What I need is a turret that only rotates within 178 degrees in the direction its facing, if it goes out of this range then it will locate the next nearest target and if there are no targets in range then the turret will swivel back to its original position.
This diagram explains it better.
<img src="http://dl.dropbox.com/u/57137706/text3896-2.png" border="0" />
In this capx if you look at the top right turret you will see it more clearly.
This is the closest I got to it working but it breaks as much as it fixes.
If possible I would also like to add in prediction aiming to it, but there hasn't been a solution yet. The closest example I found is here.
I think the reason why it don't work is because of the maths. If the maths is correct then I think it will work.
This part isn't too important because if it can't be achieved then I will make the bullets so fast that it can't be evaded, but if possible I would like a solution.
Thanks for your time everyone.