Quantcast WoWInterface - View Single Post - C_Timer problem with weakaura trigger
View Single Post
11-24-19, 08:30 AM   #10
A Fallenroot Satyr
AddOn Author - Click to view addons
Join Date: Apr 2016
Posts: 20
If you use Kanegasis example, the trigger function itself never returns true and your aura will never show up.

You could do this whit custom event.

Custom Trigger - Events: BOSS_KILL, CUSTOM_EVENT_NAME

Lua Code:
  1. function(event)
  2.     if event == "BOSS_KILL" then
  3.         C_Timer.After(3, function()
  4.                 WeakAuras.ScanEvents("CUSTOM_EVENT_NAME")
  5.                 -- If you want to pass some arguments
  6.                 -- WeakAuras.ScanEvents("CUSTOM_EVENT_NAME", argument1, argument2)
  7.         end)
  8.     end
  10.     if event == "CUSTOM_EVENT_NAME" then
  11.         return true
  12.     end
  13. end

And maybe use a better name for your custom event and not this generic example.
  Reply With Quote