41 posts
Posted 21 January 2013 - 05:54 PM
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
1688 posts
Location
'MURICA
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:
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.
41 posts
Posted 22 January 2013 - 03:36 AM
ok if i put it in a loop will it stay running
1511 posts
Location
Pennsylvania
Posted 22 January 2013 - 04:49 AM
ok if i put it in a loop will it stay running
A loop generally stays in a loop until an outside variable effects it. Being a player, server crash, etc.