Difference between revisions of "Printer.getPaperLevel"
From ComputerCraft Wiki
m (-> printer api) |
SuicidalSTDz (Talk | contribs) m (Fixed integer tag and added a better description for returned value) |
||
Line 3: | Line 3: | ||
|name=printer.getPaperLevel | |name=printer.getPaperLevel | ||
|args=none | |args=none | ||
− | |returns= | + | |returns=[[int (type)|int]] the amount of paper in the printer |
|api=printer | |api=printer | ||
|addon=ComputerCraft | |addon=ComputerCraft |
Revision as of 21:10, 3 June 2013
Function printer.getPaperLevel | |
Returns the total amount of paper in the printer. | |
Syntax | printer.getPaperLevel(none) |
Returns | int the amount of paper in the printer |
Part of | ComputerCraft |
API | printer |
Examples
Example | |
Prints paper level | |
Code |
print(printer.getPaperLevel()) |