r/ComputerCraft • u/Icewing_Nix • Sep 29 '21
I need help stopping a program.
Hello, I found this really cool Matrix Rain code for computercraft, pastebin here : https://pastebin.com/bXvr0vuN
When I make the program a startup the startup never ends, was wondering if someone could make it stop after a certain amount of seconds. Thanks!
5
Upvotes
5
u/JackMacWindowsLinux CraftOS-PC & Phoenix Developer Sep 29 '21
I'd recommend throwing the program inside a
parallel.waitForAnycall like this:This will run the program, stopping it when the 30-second timer finishes.