View Single Post
  #2  
Old 02-21-2004, 06:42 PM
Termina_Owner Termina_Owner is offline
Registered User
Join Date: Oct 2003
Posts: 175
Termina_Owner is on a distinguished road
getangle( dx,dy ) - the angle of vector (dx,dy) to the x coordinate (0...2*3.14)

Just subtract the player position with the mouse position.
__________________
- Rance Vicious
Reply With Quote