WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   Bug while get dragon riding speed ? (https://www.wowinterface.com/forums/showthread.php?t=59460)

gmarco 01-14-23 03:57 AM

Bug while get dragon riding speed ?
 
Hi all,

I have a little addon that shows the speed of the player.
It is using the formula:

Lua Code:
  1. speed = (GetUnitSpeed("Player") / 7) * 100
  2. dataobj.text = string_format("%.1f", speed)

That I got a lot of times ago from here:
https://wowpedia.fandom.com/wiki/API_GetUnitSpeed

Now it works nicely if I use a new drake of DF and not fly with it showing 210 as speed but as soon it fly up it drop to 0 ... and stay 0 with all the drake abilities during the flight.

Is there something new I have to check ? Or the API have to be updated for the new dragon riding mount types ?

I have tried also different UnitID but without luck.

Thanks for any help.

SDPhantom 01-14-23 05:49 AM

I've run into the same issue and it appears the function doesn't support the dragonriding mechanic. In watching events fire, I've been seeing VEHICLE_ANGLE_UPDATE fire a lot while on a dragonriding mount, but it doesn't do so reliably enough to be useful.

gmarco 01-14-23 08:54 AM

Hi ...

as usual thanks so much for your reply.

It is really appreciated.


All times are GMT -6. The time now is 02:53 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI