GetRelativeAngle
Returns a value corresponding to the difference, in degrees, between the angle of the subject and the angle of the target along the specified axis.
ExamplesEdit
If Foo has a Z angle of 115, and Bar has a Z angle of 120, Bar.GetRelativeAngle(Foo, Z) would return 5.0.
If Foo has a Z angle of 90, and Bar has a Z angle of 85, Bar.GetRelativeAngle(Foo, Z) would return 355.0.
NotesEdit
- As shown in the example above, this function does not return negative relative angles, it rolls over to 359.9 and counts downward instead.
- In the Creation Kit it is possible to provide [TARGET] in place of a specific reference ID. This is useful in situations where conditions may need to be applied to two dynamically-selected actors. In TES5Edit, setting the Ref ID field to "Null" has a similar effect.