Difference between revisions of "GetHeadingAngle"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
(No difference)

Revision as of 15:07, 7 February 2006

Syntax:

GetHeadingAngle ObjectRefID

Example:

GetHeadingAngle StrangeStatue 


Returns the angle between the caller's heading and the ObjectRefID.

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

  player.GetHeadingAngle StrangeStatue 

would return 270.