peripheral.wrap
From ComputerCraft Wiki
Revision as of 13:02, 1 April 2014 by Bomb Bloke (Talk | contribs) (Returns nil if handed an invalid side.)
Function peripheral.wrap | |
Returns a table containing functions pointing to the peripheral's methods, which can then be called as if using peripheral.call(side, method). If no peripheral is found at the specified "side", returns nil instead. | |
Syntax | peripheral.wrap(string side) |
Returns | table handle |
Part of | ComputerCraft |
API | peripheral |