computer.shutdown
From ComputerCraft Wiki
Revision as of 13:55, 11 February 2013 by 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...")
Function peripheral.wrap | |
Returns a handle to a peripheral that can then be used to call methods, as if using peripheral.call(side, method) | |
Syntax | peripheral.wrap((string) side) |
Returns | A handle to the peripheral on side. |
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. |