How can i run a password door program and a rednet program that has to receive a message for the door to stay open on the same startup program
Two things working
Started by tysciman7, Jan 21 2013 05:54 PM
3 replies to this topic
#1
Posted 21 January 2013 - 05:54 PM
#2
Posted 21 January 2013 - 06:12 PM
I assume you want to be able to open a door by password and by rednet message. A neat system, I'd say. Should probably just run a parallel with the two programs:
Substituting "program1" and "program2" for the names of your password and rednet programs.
parallel.waitForAny(
function() shell.run('program1') end,
function() shell.run('program2') end
)
Substituting "program1" and "program2" for the names of your password and rednet programs.
#3
Posted 22 January 2013 - 03:36 AM
ok if i put it in a loop will it stay running
3 user(s) are reading this topic
0 members, 3 guests, 0 anonymous users












