Difference between revisions of "Peripheral.call"

From ComputerCraft Wiki
Jump to: navigation, search
(Added page for peripheral.call())
 
m (Moved to CAT:LuaCoreFunctions)
 
Line 15: Line 15:
  
 
}}
 
}}
 +
 +
[[Category:Lua_Core_Functions]]

Latest revision as of 18:50, 28 November 2012


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.