Difference between revisions of "Computer.reboot"
From ComputerCraft Wiki
Digipenguin (Talk | contribs) |
MKlegoman357 (Talk | contribs) (Fixed/Expanded) |
||
(7 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | {{ | + | {{Lowercase}} |
{{Function | {{Function | ||
− | |name=computer.reboot | + | |name=''computer''.reboot |
− | | | + | |returns={{type|nil}} |
|api=peripheral | |api=peripheral | ||
|addon=ComputerCraft | |addon=ComputerCraft | ||
− | |desc=Reboots a | + | |desc=Reboots a [[Computer]] or [[Turtle]] wrapped to the <var>computer</var> variable. |
− | |examples= | + | |examples={{Example |
− | {{Example | + | |desc=Reboots the computer or turtle on the right side of the calling machine. |
− | |desc= | + | |code= |
− | |code=local | + | local computer = [[peripheral.wrap]]("right") |
− | + | ||
− | |output= | + | '''computer.reboot()''' |
+ | |output=Reboots any computer or turtle to the right of the calling machine. | ||
}} | }} | ||
}} | }} | ||
[[Category:Lua_Core_Functions]] | [[Category:Lua_Core_Functions]] |
Latest revision as of 10:59, 1 June 2014
Function computer.reboot | |
Reboots a Computer or Turtle wrapped to the computer variable. | |
Syntax | computer.reboot() |
Returns | nil |
Part of | ComputerCraft |
API | peripheral |
Examples
Example | |
Reboots the computer or turtle on the right side of the calling machine. | |
Code |
local computer = peripheral.wrap("right") computer.reboot() |
Output | Reboots any computer or turtle to the right of the calling machine. |