Difference between revisions of "Computer.shutdown"

From ComputerCraft Wiki
Jump to: navigation, search
m (Tidied up source, made code multi-line)
m (moved Computer.shutdown() to Computer.shutdown: Removed parenthesis to match other function pages.)
(No difference)

Revision as of 10:42, 1 June 2014

Grid Redstone.png  Function computer.shutdown
Shuts down a computer or turtle wrapped to the "computer" variable
Syntax computer.shutdown()
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") 
handle.shutdown()
Output Shuts down any computer to the right of the computer/turtle.