02.09.2021, 10:32
(02.09.2021, 09:54)Daniel. Wrote: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.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
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,