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.

Cancel event-scripts
#13
I've tested this code but it doesn't work, you can try in such way. Please create 2 objects "C1" and "C2".

"C1" should has such event script:


Code:
value = event.getvalue()

-- At script begin
script.disable(_SCRIPTNAME)

-- some code
os.sleep(5)
grp.update("C2", value)

-- at script end
script.enable(_SCRIPTNAME)


And please fast(<5s) send to "C1" 1 and 2.

"C2" should be changed only to 2, but is changed to 1 and isn't changed into 2. And this is little strange for me because I don't know why it isn't changed then into 2. Could you explain adminWink
Done is better than perfect
Reply


Messages In This Thread
Cancel event-scripts - by buuuudzik - 08.02.2019, 09:23
RE: Cancel event-scripts - by Daniel - 08.02.2019, 09:53
RE: Cancel event-scripts - by admin - 08.02.2019, 10:24
RE: Cancel event-scripts - by buuuudzik - 08.02.2019, 14:52
RE: Cancel event-scripts - by Daniel - 08.02.2019, 14:56
RE: Cancel event-scripts - by buuuudzik - 08.02.2019, 15:11
RE: Cancel event-scripts - by admin - 10.02.2019, 11:32
RE: Cancel event-scripts - by buuuudzik - 10.02.2019, 12:18
RE: Cancel event-scripts - by admin - 11.02.2019, 12:45
RE: Cancel event-scripts - by JASK - 07.01.2023, 00:14
RE: Cancel event-scripts - by buuuudzik - 11.02.2019, 14:14
RE: Cancel event-scripts - by khalil - 08.01.2023, 07:48
RE: Cancel event-scripts - by admin - 11.02.2019, 15:40
RE: Cancel event-scripts - by apkotelnikov - 12.02.2019, 23:26
RE: Cancel event-scripts - by buuuudzik - 13.02.2019, 07:37
RE: Cancel event-scripts - by admin - 13.02.2019, 07:49
RE: Cancel event-scripts - by admin - 09.01.2023, 07:49
RE: Cancel event-scripts - by JASK - 30.01.2023, 22:56
RE: Cancel event-scripts - by admin - 31.01.2023, 07:50

Forum Jump: