1. #1
    Grunt
    7+ Year Old Account
    Join Date
    Apr 2014
    Location
    Immersion, Frostmane EU
    Posts
    10

    Internal CD for Weakauras Action

    Hey, I need to create an internal cooldown for a Weakaura. It would be something like "do action" max once in 30 seconds. This would help with creating a power % trigger that isn't spamming sound or similar every time it crosses that specific percentage.

    Any help is appreciated!

  2. #2
    Only way I can think of implementing this would be through custom code, so hopefully you're comfortable with or willing to learn.

    There's a convenient code snippet built into weakauras for a simple throttle:
    Code:
    if not aura_env.last or aura_env.last < GetTime() - 1 then
        aura_env.last = GetTime()
        
    end
    Where adjusting the "1" will adjust the interval. hopefully this helps you get closer to your goal.

  3. #3
    Grunt
    7+ Year Old Account
    Join Date
    Apr 2014
    Location
    Immersion, Frostmane EU
    Posts
    10
    Quote Originally Posted by Cyzen View Post
    Only way I can think of implementing this would be through custom code, so hopefully you're comfortable with or willing to learn.

    There's a convenient code snippet built into weakauras for a simple throttle:
    Code:
    if not aura_env.last or aura_env.last < GetTime() - 1 then
        aura_env.last = GetTime()
        
    end
    Where adjusting the "1" will adjust the interval. hopefully this helps you get closer to your goal.
    Thanks! I'll give it a try.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •