Brick_LuaLogic/bricks/special/EventGate-input.lua
2020-05-19 02:22:30 -05:00

8 lines
199 B
Lua

-- 2020-03-30
-- Requirement change: The gate's output will now depend only on the event, and not carry the input at all
return function(gate, argv)
gate.ports[2]:setstate(toboolean(argv[1]))
end