Difference between revisions of "Computer.reboot"

From ComputerCraft Wiki
Jump to: navigation, search
(Created page with "{{lowercase}} {{Function |name=computer.wrap |args= (string) side |api=peripheral |addon=ComputerCraft |desc=Reboots a computer wrapped to the "computer" var...")
 
Line 1: Line 1:
 
{{lowercase}}
 
{{lowercase}}
 
{{Function
 
{{Function
|name=computer.wrap
+
|name=computer.reboot
 
|args= [[string (type)|(string)]] side
 
|args= [[string (type)|(string)]] side
 
|api=peripheral
 
|api=peripheral

Revision as of 13:58, 11 February 2013


Grid Redstone.png  Function computer.reboot
Reboots a computer wrapped to the "computer" variable
Syntax computer.reboot((string) side)
Returns nil
Part of ComputerCraft
API peripheral

Examples

Grid paper.png  Example
Shuts down the computer or turtle on the right side of the calling machine.
Code
local handle = peripheral.wrap("right")
Output reboots any computer to the right of the computer/turtle.