Difference between revisions of "Computer.turnOn"
From ComputerCraft Wiki
MKlegoman357 (Talk | contribs) m (moved Computer.turnOn() to Computer.turnOn: Removed parenthesis to match other function pages.) |
MKlegoman357 (Talk | contribs) (Fixed/Expanded) |
||
| 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
| Turns on a Computer or Turtle wrapped to the computer variable. | |
| Syntax | computer.turnOn() |
| Returns | nil |
| Part of | ComputerCraft |
| API | peripheral |
Examples
| 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. |