21.01.2020, 18:54
(This post was last modified: 21.01.2020, 18:55 by Tee_Trinker.)
i create a virtual object, then the event based script....changed the lamp addrres, but its the same.
what do i wrong?
lampAddress= '0/0/24'
value = event.getvalue()
lamp = grp.getvalue(lampAddress)
if value == false then
if (lamp == true) then
grp.write(lampAddress, false)
else
grp.write(lampAddress, true)
end
end
what do i wrong?
lampAddress= '0/0/24'
value = event.getvalue()
lamp = grp.getvalue(lampAddress)
if value == false then
if (lamp == true) then
grp.write(lampAddress, false)
else
grp.write(lampAddress, true)
end
end