This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
blog99's profile picture

Complex combination lock door set

Started by blog99, 27 October 2013 - 05:56 PM
blog99 #1
Posted 27 October 2013 - 06:56 PM
Title: Complex combination lock door set
Hi,
I have been working on a system that uses 1 computer and 2 separate monitors to control access to my nuclear plant on my server. I have completed most of the code, and I know how to complete the rest, but I am stumped on one thing. How to determine which monitor the combination that is being entered is coming from.
Code: pastebin.com/uDk2knCt

I would appreciate it if someone could help me out.

I want to be able to tell which monitor a combination is being entered from so that I can control how many people are in the plant at one time.
Zudo #2
Posted 28 October 2013 - 10:47 AM
http://computercraft.info/wiki/Monitor_touch_(event)

The first parameter from the monitor_touch event is the side of the monitor being touched.