This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

ON Delay
#5
(02.09.2021, 09:54)Daniel. Wrote:
Code:
object = grp.find('1/1/1')

timer=10 --dealy
delta = os.time() - object.updatetime
    if object and object.data and delta > timer then
 
  --your action
  end
What is important is the delay and interval time of your script.  For example if delay is 10 and interval 2 then script will check 5 times the condition.

thank you, Daniel
If I got your point, does the example you mentioned means that I will have a 5*10 delay?
What is your recommendation for the delay and interval time, should be (=,>,<) or didnt matter?
Best Regards,
Reply


Messages In This Thread
ON Delay - by khalil - 01.09.2021, 07:16
RE: ON Delay - by Daniel - 01.09.2021, 15:04
RE: ON Delay - by khalil - 02.09.2021, 09:32
RE: ON Delay - by Daniel - 02.09.2021, 09:54
RE: ON Delay - by khalil - 02.09.2021, 10:32
RE: ON Delay - by Daniel - 02.09.2021, 10:47

Forum Jump: