Quantcast WoWInterface - View Single Post - C_Timer problem with weakaura trigger
View Single Post
11-24-19, 06:08 PM   #11
hurpy_derp
A Murloc Raider
AddOn Author - Click to view addons
Join Date: Jun 2019
Posts: 5
Originally Posted by Urtgard View Post
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
  9.    
  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.
Thank you!!! This worked perfectly!
  Reply With Quote