Hi,
The Problem with this code is, that its only working with the yaw and if I am on the pitch (over or under) the Player its not working very well (I have to be very close with the crosshair to the enemy - much closer than with the yaw). So if I am left or right with the crosshair(yaw) its aiming on the player, but its not working very well with the pitch. Whats wrong in the Code?
The other problem is, that if I am very far away its not working anymore (aiming on the player). Where is the Problem? I dont get it.. I just cant find the mistake can you help me, please? THANK YOU!!
Regards
Last edited by T-800; 05-20-2017 at 04:55 AM.
Found that already - unfortunately its not fixing my problem(s)
it should, as problem is in your calcangle function
No, 'my yaw & pitch is correct. It aims perfectly to the closest player (If I use the normal distance without FOV). It's about the fov distance like in my Code the "realDistance".
- - - Updated - - -
Thread can be closed #close.