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

Description

Wiki Description

Returns the angle between this object's current heading, and the direction from this object toward a target object, in degrees. If you were to add the returned angle to this object's current rotation around the z axis, it would then be facing the target object.

Documentation Comment

Gets the angle between this object's heading and the other object in degrees - in the range from -180 to 180


Parameters

  1. ObjectReferenceakOther

    CK Wiki Description

    The target object to measure the angle towards.


Examples

No human-generated examples found for this function.

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.