Thread Tools Display Modes
Prev Previous Post   Next Post Next
01-14-23, 03:57 AM   #1
gmarco
An Onyxian Warder
 
gmarco's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 362
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.
__________________
This is Unix-Land. In quiet nights, you can hear the Windows machines reboot.
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » Bug while get dragon riding speed ?


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off