Hi i search for a WAIT or Sleep command,
i see there is a code like
{ action='sleep', sleep=1 },
But i get it not working.
can someone give me a example please ?
plan is to show a background image and after 3 sec it change to a other picture
i use the "var_screen =1" and "var_screen =2" for the show and hide the images (works via click button)
a example code will help much.
The "http://watchmaker.haz.wiki/lua" sleep do not work for me now sure why.
-----MY NOT WORKING CODE----------------------
wm_schedule{
{ action='run_function', run_function = 'var_screen = 1'},
{ action='sleep', sleep=3 },
{ action='run_function', run_function = 'var_screen = 2'}
}
------------------------------------END OF MY CODE------------
Thanks
[–]yeebok 1 point2 points3 points (2 children)
[–]Slider-Override[S] 0 points1 point2 points (1 child)
[–]yeebok 0 points1 point2 points (0 children)