Difference between revisions of "Computer.turnOn"
From ComputerCraft Wiki
TheVarmari (Talk | contribs) (Added function page) |
MKlegoman357 (Talk | contribs) (Fixed/Expanded) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | {{Lowercase}} | ||
{{Function | {{Function | ||
− | + | |name=''computer''.turnOn | |
− | + | |returns={{type|nil}} | |
− | + | |api=peripheral | |
− | + | |addon=ComputerCraft | |
− | + | |desc=Turns on a [[Computer]] or [[Turtle]] wrapped to the <var>computer</var> variable. | |
− | + | |examples={{Example | |
− | + | |desc=Turns on the computer or turtle on the right side of the calling machine. | |
− | + | |code= | |
− | + | local computer = [[peripheral.wrap]]("right") | |
− | + | ||
+ | '''computer.turnOn()''' | ||
+ | |output=Turns on any computer to the right of the computer/turtle. | ||
}} | }} | ||
}} | }} | ||
[[Category:Lua_Core_Functions]] | [[Category:Lua_Core_Functions]] |
Latest revision as of 10:55, 1 June 2014
Function computer.turnOn | |
Turns on a Computer or Turtle wrapped to the computer variable. | |
Syntax | computer.turnOn() |
Returns | nil |
Part of | ComputerCraft |
API | peripheral |
Examples
Example | |
Turns on the computer or turtle on the right side of the calling machine. | |
Code |
local computer = peripheral.wrap("right") computer.turnOn() |
Output | Turns on any computer to the right of the computer/turtle. |