+ Reply to Thread
Results 1 to 2 of 2
Like Tree1Likes
  • 1 Post By Wowo

Thread: API to get player's facing direction?

  1. #1
    Plane Walker
    Join Date
    Apr 2016

    Default API to get player's facing direction?

    Is there any API to get the direction the player is facing?
    API to get player's facing direction?-mqmad2a.png

    In the above image, the player is facing at an angle of ~150 degree if we take the north as the reference (0 degree)

    I know there's an outOfRange member to check if you are facing a target,
    but what about when you have no target?
    eg. an add-on that points the direction you should be going to reach a location/resource (eg. gathering/artifact nodes)
    It's possible to calculate this mathematically if the toon is moving, based on the change in coordinates, but this is both complicated and inaccurate if the toon is moving erratically, and not computable when the toon is stationary.

    If it doesn't exist yet, please add it as a member to Inspect.Unit.Detail(), name it something like 'facingDirection' with a floating point value between 0 and 359 (in degree, relative to the north)
    Last edited by Wowo; 02-07-2017 at 11:32 PM.

  2. #2
    Join Date
    Jun 2014


    Bump for support for this, writing an add on that would utilise this if it was available.

+ Reply to Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts