peripheral.call

From ComputerCraft Wiki
Revision as of 18:50, 28 November 2012 by AfterLifeLochie (Talk | contribs) (Moved to CAT:LuaCoreFunctions)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Grid Redstone.png  Function peripheral.call
Calls a method on the peripheral attached to side.
Syntax peripheral.call((string) side, (string) methodName, arguments)
Returns Depends on the method called.
Part of ComputerCraft
API peripheral

Examples

Grid paper.png  Example
Clears the screen of any monitor attached to the right side of a computer/turtle.
Code
peripheral.call("right", "clear")
Output Clears the screen of any monitor attached to the right side of a computer/turtle.