Obtaining position of a unit directly controlled by the player #31


Open
  • rickrob created this issue Sep 10, 2022

    I am referring to situations where the player position shown on the world map is not moving while the position shown on the minimap is, since minimap is showing the position of a unit controlled by the player.
    Such as:
    - Eyes of the Beast

    - Eagle Eye / Farsight (not really a unit maybe? but similar)

    - Eye of Acherus (in DK intro; this one would be especially interesting to me rn) and possibly other similar "remote-controlled" quest vehicles
    (Unfortunately HBD:GetUnitWorldPosition("pet") does not return a position even when the controlled unit is shown as the player's pet as with Eyes of the Beast and Eye of Acherus.)

    I do not know if this is already possible through HBD or if this is even the right place to ask for such a feature.

    Also minimap pins created with HBD will not move correctly when the minimap position is moving in these situations.

  • nevcairiel posted a comment Sep 10, 2022

    If  HBD:GetUnitWorldPosition("pet") does not work (and neither does "vehicle", as a second test), I'm afraid the game just isn't handing over the data.

  • rickrob posted a comment Sep 10, 2022

    Unfortunately nothing with "vehicle" either.
    (Also UnitInVehicle("player") does not return true in any of these situations.)


    Edited Sep 10, 2022
  • rickrob posted a comment Sep 11, 2022


    Here you can see an example where map and minimap position of a TomTom waypoint (which is created with HBD) do not match:

     


    Edited Sep 11, 2022

To post a comment, please login or register a new account.