Difference between revisions of "Computer.reboot"

From ComputerCraft Wiki
Jump to: navigation, search
m (moved Computer.reboot() to Computer.reboot: Removed parenthesis to match other function pages.)
(Fixed/Expanded)
 
Line 1: Line 1:
 +
{{Lowercase}}
 
{{Function
 
{{Function
|name=computer.reboot
+
|name=''computer''.reboot
|api=peripheral
+
|returns={{type|nil}}
|addon=ComputerCraft
+
|api=peripheral
|desc=Reboots a computer or turtle wrapped to the "computer" variable
+
|addon=ComputerCraft
|examples={{Example
+
|desc=Reboots a [[Computer]] or [[Turtle]] wrapped to the <var>computer</var> variable.
|desc=Reboots the computer or turtle on the right side of the calling machine.
+
|examples={{Example
|code=
+
|desc=Reboots the computer or turtle on the right side of the calling machine.
  local handle = peripheral.wrap("right")  
+
|code=
  handle.reboot()
+
local computer = [[peripheral.wrap]]("right")
|output=Reboots any computer or turtle to the right of the calling machine.
+
   
 +
'''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


Grid Redstone.png  Function computer.reboot
Reboots a Computer or Turtle wrapped to the computer variable.
Syntax computer.reboot()
Returns nil
Part of ComputerCraft
API peripheral

Examples

Grid paper.png  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.