Computer.isturnedon
#1
Posted 08 September 2013 - 03:09 AM
#2
Posted 08 September 2013 - 05:16 AM
#3
Posted 08 September 2013 - 06:02 AM
that being said this still isn't really needed... invoking turnOn, if it is on, does nothing. invoking shutdown, if it is off, does nothing. So if you're wanting to turn on a computer, just call turnOn, if it's off, it will turn on, if it's on it will stay on.
#4
Posted 08 September 2013 - 06:44 AM
theoriginalbit, on 08 September 2013 - 06:02 AM, said:
that being said this still isn't really needed... invoking turnOn, if it is on, does nothing. invoking shutdown, if it is off, does nothing. So if you're wanting to turn on a computer, just call turnOn, if it's off, it will turn on, if it's on it will stay on.
I support this idea.
#5
Posted 08 September 2013 - 06:45 AM
mitchfizz05, on 08 September 2013 - 06:44 AM, said:
#6
Posted 08 September 2013 - 07:18 AM
theoriginalbit, on 08 September 2013 - 06:45 AM, said:
It is programming, there could be lots of cases where the programmer needs it.
Maybe that computer has a startup script that does something in the minecraft world and you can detect it with this then. Because it is on, not 100% reliable though.
I think it is a good idea to do this because you can check if a certain computer is on or not within a network etc.
#7
Posted 08 September 2013 - 12:17 PM
Engineer, on 08 September 2013 - 07:18 AM, said:
Engineer, on 08 September 2013 - 07:18 AM, said:
Engineer, on 08 September 2013 - 07:18 AM, said:
#8
Posted 08 September 2013 - 12:20 PM
theoriginalbit, on 08 September 2013 - 12:17 PM, said:
Engineer, on 08 September 2013 - 07:18 AM, said:
What if I want to detect if the script just is running and dont want it to be running?
#10
Posted 08 September 2013 - 12:25 PM
peripheral.call(side,"getID")
It returns nil if the computer is off, and the ID if it's on.
#12
Posted 08 September 2013 - 04:18 PM
#13
Posted 08 September 2013 - 04:24 PM
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


This topic is locked









