29.10.2014, 04:08
(
Последний раз редактировалось denNorske; 29.10.2014 в 07:13.
)
Hello again!
TITLE CORRECTION: Get Angle from player A to player B
Working on some features, i got this awesome idea to my mind. It's based on CnR and hunting, but i can't say too much about it until i get it done; but i would need some help achieving this.
Based on Vectors, (i've had physics for two years) i know one can simply calculate the angle between two points and then get the exact heading towards the second point. (https://sampforum.blast.hk/showthread.php?tid=491604)
My english ain't the best, so i'm struggling a bit to find the right functions to use for my code.
Lets say the two points are dynamic, such as two players, i get the position from them and the script calculates the heading in degrees in x,y , not necessarily the elevation. How would the function look? Are there any stock functions to use, or do i need to calculate the magnitude and all that myself?
I would like to know what to do exactly, it feels different in sa-mp even tho it shouldn't be :P
Thanks
TITLE CORRECTION: Get Angle from player A to player B
Working on some features, i got this awesome idea to my mind. It's based on CnR and hunting, but i can't say too much about it until i get it done; but i would need some help achieving this.
Based on Vectors, (i've had physics for two years) i know one can simply calculate the angle between two points and then get the exact heading towards the second point. (https://sampforum.blast.hk/showthread.php?tid=491604)
My english ain't the best, so i'm struggling a bit to find the right functions to use for my code.
Lets say the two points are dynamic, such as two players, i get the position from them and the script calculates the heading in degrees in x,y , not necessarily the elevation. How would the function look? Are there any stock functions to use, or do i need to calculate the magnitude and all that myself?
I would like to know what to do exactly, it feels different in sa-mp even tho it shouldn't be :P
Thanks