mnscript
TeleporterConnected(Teleporter)
Description ​
Invoked when a Teleporter peripheral is connected to the terminal
Arguments ​
Teleporter
- The Teleporter which was connected
Example ​
msc
using Console;
using Event;
using Peripheral;
// Registers an event listener for when teleporters are connected.
function OnTeleporterConnected(Teleporter tele){
Console.WriteLine("A teleporter was connected!");
}
Event.AddListener("TeleporterConnected", "teleporters", "OnTeleporterConnected");