Thanks robhol, it works fine!
But I need another function. I write the prototype here and hope someone can help me
find the angle rotation from the points (x1, y1), (x2, y2)
if a ped was on point 1 and I set x to this value the ped would look toward point 2.
Sorry my English ...
Please help me, I need the features of the script and can not figure out how I can make them.
It seems that it is easy for anyone who can trigonometry?
I'm not good in trigonometry and need these functions to the script, preferably in pure mathematics.
Determining point given a point, distance and direction
(x, y, z, distance, direction)
Speed in one direction (find x, y-speed)
(direction, speed)
As said, I'm not good in trigonometry, I am very grateful for the help.
Thanks in advance.
PS. sorry for bad English, using automatic translation