Difference between revisions of "Redstone.setOutput"
From ComputerCraft Wiki
(Created page with "{{lowercase}} {{Function |name=redstone.setOutput |args=string side, boolean state |api=redstone |examples= {{Example |desc=Makes the computer output a redstone signal...") |
Smiley43210 (Talk | contribs) m (Changed to use type template) |
||
| (4 intermediate revisions by 3 users not shown) | |||
| Line 2: | Line 2: | ||
{{Function | {{Function | ||
|name=redstone.setOutput | |name=redstone.setOutput | ||
| − | |args= | + | |args={{type|string}} side, {{type|boolean}} state |
|api=redstone | |api=redstone | ||
|examples= | |examples= | ||
{{Example | {{Example | ||
| − | |desc=Makes the computer output a redstone signal | + | |desc=Makes the computer output a redstone signal for one second |
|code=redstone.setOutput("back", true) | |code=redstone.setOutput("back", true) | ||
sleep(1) | sleep(1) | ||
| Line 14: | Line 14: | ||
|notes= | |notes= | ||
* This function will throw an error if you give it an invalid side. | * This function will throw an error if you give it an invalid side. | ||
| + | * List of possible sides: left, right, front, back, bottom, top | ||
}} | }} | ||
| + | |||
| + | [[Category:Lua_Core_Functions]] | ||
Latest revision as of 00:03, 6 May 2013
| No description provided. | |
| Syntax | redstone.setOutput(string side, boolean state) |
| Returns | nil |
| Part of | ComputerCraft |
| API | redstone |
Examples
Additional Notes
- This function will throw an error if you give it an invalid side.
- List of possible sides: left, right, front, back, bottom, top