17.03.2008, 13:03
I dont know if i'm correct, but i'm not sure that u need those cos and sin functions for this.
I built a pet system and when the pet attacks, it chases the player and always facing him.
I just took the target player's angle subtracted it form 180 (180-the target's angle). Then i applied the outcome angle on the pet.
yom, u replied to my question on my pets topic with the 180 degrees thing..
So y won't it work on this script? just subtract the outcome of the 180 degrees thing from the player's facing angle, and thats how much he need to turn... no?
I built a pet system and when the pet attacks, it chases the player and always facing him.
I just took the target player's angle subtracted it form 180 (180-the target's angle). Then i applied the outcome angle on the pet.
yom, u replied to my question on my pets topic with the 180 degrees thing..
So y won't it work on this script? just subtract the outcome of the 180 degrees thing from the player's facing angle, and thats how much he need to turn... no?