Home   Help Search Login Register  

Author Topic: Angle from player to target?  (Read 418 times)

0 Members and 1 Guest are viewing this topic.

BUNNY

  • Guest
Angle from player to target?
« on: 22 Oct 2004, 07:42:20 »
Has any1 done this little and multiuseful script that returns the degree from 0-360 from player to the target (at players point of view). I tried to do this but I'm not so good at math.

Offline Mud_Spike

  • Contributing Member
  • **
Re:Angle from player to target?
« Reply #1 on: 22 Oct 2004, 09:46:47 »
Oh yes, there is a handy function for that (actually a bunch of 'em depending on input type):

http://www.ofpec.com/editors/funcref.php?letter=All#DirToObj

And if you dont know how to use functions; there is a lovely intro in the editors depot.

Go fetch!
« Last Edit: 22 Oct 2004, 09:47:11 by Mud_Spike »

BUNNY

  • Guest
Re:Angle from player to target?
« Reply #2 on: 22 Oct 2004, 09:52:28 »
PERFECT!!! Thank you so much, and thanks for the functionmaker!