Difference between revisions of "Computer.reboot"
From ComputerCraft Wiki
Digipenguin (Talk | contribs) |
TheVarmari (Talk | contribs) m (Tidied up source, made code multi-line) |
||
Line 1: | Line 1: | ||
− | |||
{{Function | {{Function | ||
− | |name=computer.reboot | + | |name=computer.reboot |
− | |api=peripheral | + | |api=peripheral |
− | |addon=ComputerCraft | + | |addon=ComputerCraft |
− | |desc=Reboots a computer wrapped to the "computer" variable | + | |desc=Reboots a computer or turtle wrapped to the "computer" variable |
− | |examples= | + | |examples={{Example |
− | {{Example | + | |desc=Reboots the computer or turtle on the right side of the calling machine. |
− | |desc= | + | |code= |
− | |code=local handle = peripheral.wrap("right") handle.reboot() | + | local handle = peripheral.wrap("right") |
− | |output= | + | handle.reboot() |
+ | |output=Reboots any computer or turtle to the right of the calling machine. | ||
}} | }} | ||
}} | }} | ||
[[Category:Lua_Core_Functions]] | [[Category:Lua_Core_Functions]] |
Revision as of 02:47, 12 May 2013
Function computer.reboot | |
Reboots a computer or turtle wrapped to the "computer" variable | |
Syntax | computer.reboot() |
Returns | nil |
Part of | ComputerCraft |
API | peripheral |