peripheral.call

From ComputerCraft
Jump to navigation Jump to search

peripheral.call
Function
Syntax
peripheral.call(
  • side or network name : string
  • function name : string
  • function arguments... : any
)

Returns anything
API peripheral
Source CC:Tweaked

Calls a peripheral's function directly, at the specified side or network name.

ExampleExampleCheck if the modem on top of the computer is wireless.
Check if the modem on top of the computer is wireless.
Code
peripheral.call("top", "isWireless")
Output true