Difference between revisions of "Computer.shutdown"
From ComputerCraft Wiki
Digipenguin (Talk | contribs) (Created page with "{{lowercase}} {{Function |name=peripheral.wrap |args= (string) side |returns=A handle to the peripheral on ''side''. |api=peripheral |addon=ComputerCraft |de...") |
Digipenguin (Talk | contribs) |
||
Line 1: | Line 1: | ||
{{lowercase}} | {{lowercase}} | ||
{{Function | {{Function | ||
− | |name= | + | |name=computer.wrap |
|args= [[string (type)|(string)]] side | |args= [[string (type)|(string)]] side | ||
− | |||
|api=peripheral | |api=peripheral | ||
|addon=ComputerCraft | |addon=ComputerCraft | ||
− | |desc= | + | |desc=Shuts down a computer wrapped to the "computer" variable |
|examples= | |examples= | ||
{{Example | {{Example |
Revision as of 13:56, 11 February 2013
Function computer.wrap | |
Shuts down a computer wrapped to the "computer" variable | |
Syntax | computer.wrap((string) side) |
Returns | nil |
Part of | ComputerCraft |
API | peripheral |
Examples
Example | |
Shuts down the computer or turtle on the right side of the calling machine. | |
Code |
local handle = peripheral.wrap("right") |
Output | Shuts down any computer to the right of the computer/turtle. |