WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   Calling function from another addon (https://www.wowinterface.com/forums/showthread.php?t=58812)

Bound19375 06-27-21 06:56 AM

Calling function from another addon
 
Do anyone know how to call player main_swing_timer from WeaponSwingTimer-SixxFix to be used in another addon?
https://github.com/watchyoursixx/Wea...gTimer-SixxFix

Fizzlemizz 06-27-21 07:14 AM

addon_data.player.main_swing_timer isn't a function, it's a variable. It's in the addons private table (addon_data) so you can't use it in another addon without altering the WST addon itself.


All times are GMT -6. The time now is 11:25 PM.

vBulletin © 2021, Jelsoft Enterprises Ltd
© 2004 - 2021 MMOUI