Posted 05 August 2013 - 06:16 PM
I have a program that i have running that i need to be able to stop by chat command(open peripheral mod)
here is my problem
lets say the program is
x = 1
while true do
x = x + 1
end
but i want to be able to tell it when to stop. I know i cant use
local event, command = os.pullEvent("chat_command")
because it will stop the programs regardless of a command while it waits for one. my current fix which sucks is using the rs.getInput command, and having the input toggle by chat. Any ideals?
here is my problem
lets say the program is
x = 1
while true do
x = x + 1
end
but i want to be able to tell it when to stop. I know i cant use
local event, command = os.pullEvent("chat_command")
because it will stop the programs regardless of a command while it waits for one. my current fix which sucks is using the rs.getInput command, and having the input toggle by chat. Any ideals?