I have been working with CC Lua packs and have noticed something with the autorun folders?
Is there a way to only autorun certain codes on certain devices like putting an autorun code for turning off a CommandComputer on startup or would I have to code it in the program itself?
Like is there a way to do: "packName/assets/computercraft/lua/rom/autorun/deviceName/program"
0
2 replies to this topic
#1
Posted 18 June 2017 - 03:05 AM
#2
Posted 18 June 2017 - 03:25 AM
I doubt it. It's easy to code into the program though, just check for the commands table.
#3
Posted 18 June 2017 - 12:56 PM
Alternatively, I'm not sure if programs in sub-folders are run, but if not, you could do exactly what you said and have a single file in /autorun that checks the device type and runs programs in the respective folders.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users