Difference between revisions of "Disk.getID"
From ComputerCraft Wiki
m (Moved to CAT:APIFunctions) |
(Int linking fix; awkward phrasing re-phrased.) |
||
Line 4: | Line 4: | ||
|args=[[string (type)|string]] side | |args=[[string (type)|string]] side | ||
|api=disk | |api=disk | ||
− | |returns=[[int]] | + | |returns=[[int (type)|int]] disk ID |
|addon=ComputerCraft | |addon=ComputerCraft | ||
|examples= | |examples= |
Revision as of 18:33, 30 November 2012
Function disk.getDiskID | |
No description provided. | |
Syntax | disk.getDiskID(string side) |
Returns | int disk ID |
Part of | ComputerCraft |
API | disk |
Examples
Example | |
Prints the ID of the disk. | |
Code |
print(disk.getDiskID("bottom")) |
Output | The ID of the disk (side varies). |