View Single Post
11-22-19, 05:41 AM   #6
hurpy_derp
A Murloc Raider
AddOn Author - Click to view addons
Join Date: Jun 2019
Posts: 5
Originally Posted by Kanegasi View Post
A weakaura custom trigger requires a function object to work. You're getting an error because C_Timer.After is a function call in this scenario. Wrap what you have in a function object:

Lua Code:
  1. function(event)
  2.     C_Timer.After(3, function()
  3.         if event == "BOSS_KILL" then
  4.             return true
  5.         end
  6.     end
  7. end

If you're confused, basically weakaura trigger custom code has to start with the word "function" and end with "end", no exceptions, unless you have a global function to use, then you only use the function name and nothing else.
Thanks for the input, but it's still not working. It's not giving any errors, just not triggering at all
  Reply With Quote