ConsoleCommand
Skip to content
mnscript
ConsoleCommand(string) 

Description ​

Invoked when a console command is typed

Arguments ​

string - The command string typed

Example ​

msc
using Console;
using Event;

function OnConsoleCommand(string command){
    Console.WriteLine("The command was typed: "..command);
}

Event.AddListener("ConsoleCommand", "input", "OnConsoleCommand");