Nice tutorials -orb-
I made an easier way to add height to an angle using the beacon sensor, this just takes a distance and an elevation input, then it uses trig functions to add the height of the target and returns the new elevation value. It can an be easily implemented into your turret contraptions and they won't shoot at the players' feet anymore.
I've just made it (it took me about 5 minutes and a little brains) and <strike>I still have to test it, but i'm 90% sure it works.</strike> I tested it and it works 
Code:
N@Us3r's Sensor Elevation Fixer
I@Distance Elevation
O@FixedElevation
#Change the value of the next variable as it best fits you
HEIGHT = 30
#Don't change the following unless you know what you're doing;)
!Distance -> FixedElevation = 0, end;
FixedElevation = atan(sin(Elevation)+HEIGHT/Distance, cos(Elevation))
Change the HEIGHT value if you need. A tip: don't make your contraptions aim for the head of the players, or they will be able to easy avoid being shot by crouching. If you're getting trouble with this or you just don't understand how it works feel free to ask me.
Hope this helps 
EDIT: Just realized (by looking at the documentation again) that the function was called atan and not arctan. I fixed it 
EDIT 2: Tested: it works
Bookmarks