Posted 05 April 2014 - 04:48 AM
Hi, I was wondering how I would start a computer on restart (Such as in single player) without having to manually having to restart the computer by accessing it. Thanks!
function reboot(arg)
rb = fs.open("startup", "w")
rb.write(arg)
rb.close()
os.reboot()
end
reboot("shell.run('proj/game')")
This would save a file to the startup for what to do next after rebooting.that'd save a syntax error… the last line should readnow, if you want to do a specific script i would do something like:This would save a file to the startup for what to do next after rebooting.function reboot(arg) rb = fs.open("startup", "w") rb.write(arg) rb.close() os.reboot() end reboot("shell.run(proj/game")
reboot("shell.run('proj/game')")