Difference between revisions of "Computer.shutdown"
From ComputerCraft Wiki
TheVarmari (Talk | contribs) m (Tidied up source, made code multi-line) |
MKlegoman357 (Talk | contribs) (Fixed/Expanded) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | {{Lowercase}} | ||
{{Function | {{Function | ||
− | + | |name=''computer''.shutdown | |
− | + | |returns={{type|nil}} | |
− | + | |api=peripheral | |
− | + | |addon=ComputerCraft | |
− | + | |desc=Shuts down a [[Computer]] or [[Turtle]] wrapped to the <var>computer</var> variable. | |
− | + | |examples={{Example | |
− | + | |desc=Shuts down the computer or turtle on the right side of the calling machine. | |
− | + | |code= | |
− | + | local computer = [[peripheral.wrap]]("right") | |
− | + | ||
+ | '''computer.shutdown()''' | ||
+ | |output=Shuts down any computer to the right of the computer/turtle. | ||
}} | }} | ||
}} | }} | ||
[[Category:Lua_Core_Functions]] | [[Category:Lua_Core_Functions]] |
Latest revision as of 10:57, 1 June 2014
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
Example | |
Shuts down the computer or turtle on the right side of the calling machine. | |
Code |
local computer = peripheral.wrap("right") computer.shutdown() |
Output | Shuts down any computer to the right of the computer/turtle. |