Need help with lua error
Anyone know about coroutines in Lua?
Here is the setup. I am working on an Addon to capture a screenshot when you level up. I got that part working however, the screenshot does not show the golden sparks. So I need to delay the screenshot for a second or two. I tried the following code to delay the screenshot: Code:
local sstime; So I read up and I am trying to use coroutines as a way to "thread" the timer. I have the following code in my Lua: Code:
local cr = coroutine.create(function(x) Quote:
thanks in advance! |
The WoW implementation of lua seems to have lots of things missing, is the coroutine functionality one of those ?
|
Quote:
You may just want to look at a timer library like Timex or Chronos, or roll your own using an OnUpdate handler. |
All times are GMT -6. The time now is 08:37 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI