Difference between revisions of "Computer.reboot"
From ComputerCraft Wiki
Digipenguin (Talk | contribs) |
Digipenguin (Talk | contribs) |
||
Line 9: | Line 9: | ||
{{Example | {{Example | ||
|desc=Shuts down the computer or turtle on the right side of the calling machine. | |desc=Shuts down the computer or turtle on the right side of the calling machine. | ||
− | |code= | + | |code=local handle = peripheral.wrap("right") handle.reboot() |
− | handle.reboot() | + | |
|output=reboots any computer to the right of the computer/turtle. | |output=reboots any computer to the right of the computer/turtle. | ||
}} | }} |
Revision as of 13:59, 11 February 2013
Function computer.reboot | |
Reboots a computer wrapped to the "computer" variable | |
Syntax | computer.reboot((string) side) |
Returns | nil |
Part of | ComputerCraft |
API | peripheral |