Background for Skyrim SE
Member of the ObjectReference script
floatfunctionGetHeadingAngle(ObjectReferenceakOther)Native

[DEV SERVER] Loading description...


Caveats


Parameters

ObjectReferenceakOther

CK Wiki Description

The target object to measure the angle towards.


Examples

;Assume a view from above:
;
;              C
;              |
;              |
;              |
;            , A------->  (A's heading [A is facing this direction])
;        , '    `
;    , '          `
;  D                `
;                     `
;                       `
;                         B

float fAngle = A.GetHeadingAngle(B) ;fAngle will equal 45.0
float gAngle = A.GetHeadingAngle(C) ;gAngle will equal -90.0
float hAngle = A.GetHeadingAngle(D) ;hAngle will equal 150.0 (approx)
; Have the statue face the player
float zOffset = Statue.GetHeadingAngle(Game.GetPlayer())
Statue.SetAngle(Statue.GetAngleX(), Statue.GetAngleY(), Statue.GetAngleZ() + zOffset)

Auto-Generated Example

ObjectReference myObjectReference__akOther

float returnedValue = myObjectReference__toCallFunctionOn.GetHeadingAngle(myObjectReference__akOther)

Related Pages


Additional References

View this function’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.