Difference between revisions of "GetHeadingAngle"
Jump to navigation
Jump to search
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 | would return -90. | ||