Jump to content




Two things working


  • You cannot reply to this topic
3 replies to this topic

#1 tysciman7

  • Members
  • 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

#2 Kingdaro

    The Doctor

  • Members
  • 1,636 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.

#3 tysciman7

  • Members
  • 41 posts

Posted 22 January 2013 - 03:36 AM

ok if i put it in a loop will it stay running

#4 SuicidalSTDz

    Permutator of Strings

  • Members
  • 1,308 posts
  • LocationPennsylvania

Posted 22 January 2013 - 04:49 AM

View Posttysciman7, on 22 January 2013 - 03:36 AM, said:

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.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users