Can I access SavedVariables of other addon
View Single Post
01/20/18, 06:08 AM
Join Date: Dec 2017
Originally Posted by
You can have a look at
. There I read the values from QuickEnchanter, if present.
Basically, due to DependsOn, the AddonLoaded callback is called for the other addon first. So once the addonName is the name of the other addon, you can use the SavedVar as if it would be yours.
You just have to use the same ZO_SavedVars method as the other addon, just without any defaults.
Thanks a lot. I forgot that those variables are global and when my addon initializes those dependencies are already initialized so I can just read the savedVariables from their global.
And for the rewriting of savedVariables, can I just use that reference (I assume that it's just a reference) to write to their savedVariables?
View Public Profile
Send a private message to Haaxor1689
Find More Posts by Haaxor1689