GetHeadingAngle

From the Oblivion ConstructionSet Wiki
Revision as of 15:07, 7 February 2006 by 10.0.1.94 (talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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.