View Single Post
02-15-24, 07:57 AM   #4
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,937
I've never used it myself. But I would have thought the example they gave was informative enough.


Lua Code:
  1. local function bootlegRepeatingTimer()
  2.  
  3.     print(GetTime())                                    >>> Code executed
  4.  
  5.     C_Timer.After(1, bootlegRepeatingTimer)     >>> Causes the function to occur again after 1 second
  6. end
  7. bootlegRepeatingTimer()                 >>> Start the cycle

This example is a timer of 1 second that calls itself making it a repeating timer.

Inside that function you could have it do what you want so that every 1 second ( in this example ) it will redo them. This can even be another function where you do all the functionality.
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818

Last edited by Xrystal : 02-15-24 at 08:01 AM.
  Reply With Quote