mnscript
Teleporter Peripheral.GetConnectedTeleporter()
Description ​
Attempts to find a connected Teleporter peripheral
Returns ​
Teleporter
- The Teleporter entity
Example ​
msc
using Peripheral;
using Application;
Teleporter teleporter = Peripheral.GetConnectedTeleporter();
if(teleporter.IsValid() == false){
// If the teleporter was not connected to the terminal, quit.
Application.Exit();
}