View Single Post
01/27/23, 05:49 PM   #2
Sharlikran
 
Sharlikran's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 655
Code:
local function OnAddOnLoaded(eventCode, addonName)
  if addonName == YourModNameAsAString then
    EVENT_MANAGER:UnregisterForEvent(YourModNameAsAString, EVENT_ADD_ON_LOADED)
    DoInitStuff()
  end
end
EVENT_MANAGER:RegisterForEvent(YourModNameAsAString, EVENT_ADD_ON_LOADED, OnAddOnLoaded)
YourModNameAsAString has to match the manifest file or the text file and the folder name.

If that isn't what you need then I have no idea what you mean. Other then yes Lua, interpreter, and infinite loop I get that, but not sure what you mean.
  Reply With Quote