Difference between revisions of "GetHeadingAngle"

Jump to navigation Jump to search
28 bytes added ,  06:31, 6 May 2006
correted the return value of the example
 
imported>JustTim
(correted the return value of the example)
Line 5: Line 5:




Returns the angle between the caller's heading and the ObjectRefID.  
Returns the angle between the caller's heading and the ObjectRefID in a range from -180 to 180.  


For example, say the player is facing due north. The object StrangeStatue is due west of the player. The command:  
For example, say the player is facing due north. The object StrangeStatue is due west of the player. The command:  
Line 11: Line 11:
   player.GetHeadingAngle StrangeStatue  
   player.GetHeadingAngle StrangeStatue  


would return 270.  
would return -90.  
   
   


Anonymous user

Navigation menu