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.

Event Scripting
#8
You will need another similar script mapped to input 2 groups.
Code:
value2 = event.getvalue()

addr1 = event.dstraw - 14
value1 = grp.getvalue(addr1)

outaddr = event.dstraw + 20

if value1 == 0 then
  grp.write(outaddr, 0)
elseif value1 == 1 and value2 == 0 then
  grp.write(outaddr, 1)
elseif value1 == 1 and value2 == 85 then
  grp.write(outaddr, 2)
end
Reply


Messages In This Thread
Event Scripting - by Ibrahim - 17.03.2023, 08:45
RE: Event Scripting - by admin - 17.03.2023, 08:56
RE: Event Scripting - by Ibrahim - 17.03.2023, 09:24
RE: Event Scripting - by Erwin van der Zwart - 17.03.2023, 09:39
RE: Event Scripting - by Ibrahim - 17.03.2023, 11:43
RE: Event Scripting - by admin - 17.03.2023, 12:02
RE: Event Scripting - by Ibrahim - 17.03.2023, 12:23
RE: Event Scripting - by admin - 17.03.2023, 12:29
RE: Event Scripting - by Ibrahim - 17.03.2023, 12:35

Forum Jump: