computer.getID
From ComputerCraft
Jump to navigation
Jump to search
computer.getID Function | |
---|---|
Syntax computer.getID() | |
Returns | number id |
API | computer |
Source | CC:Tweaked (source) |
Returns the ID of a computer.
|
|||
Get the computer ID and print it. | |||
Code | local computer = peripheral.find("computer")
print(computer.getID())
|
||
Output | 0
|