Quantcast
Calling function from another addon - WoWInterface
Thread Tools Display Modes
06-27-21, 06:56 AM   #1
Bound19375
A Defias Bandit
Join Date: Jun 2021
Posts: 2
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

Last edited by Bound19375 : 06-27-21 at 07:04 AM.
  Reply With Quote
06-27-21, 07:14 AM   #2
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,440
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.
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Calling function from another addon

Thread Tools
Display Modes

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