Check for existance of another addon
Hello,
is there an "easy" way to check whether a particular another addon is loaded in my addon? I want to implement a check to keep things save in case of both addons are loaded. Thank you for your help and best regards |
Each addon runs through event_addon_loaded.
Add the other addon to your addons txt file at ##OptionalDependsOn: OtherAddon In your callback function of event_addon_loaded you'll be able to check the parameter addonName == Other Addon finally. Or simply check the other addons code if it got a global variable defined. Inside your code check if this var exists like this: If otherAddonVar and otherAddonVar.functionName then --other addon is loaded End |
|
Quote:
|
Or :
If addOn_variable_GLOBAL then //your code end |
All times are GMT -6. The time now is 01:08 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI