disk.eject

Ejects the disk in the disk drive at drive. This will eject the disk item itself out of the drive and back into the world.

A disk being ejected from a disk drive.
ExampleEject a disk
Ejects a disk from the drive to the left of the computer.
Code
<nowiki>
disk.eject("left")
    </nowiki>

disk.eject
Function
Syntax
disk.eject(
  • drive : string The side or network name of the disk drive to eject the disk from.
)

Returns nil
API disk
Source CC:Tweaked (source)
This article is issued from Computercraft. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.