Add sample-script-random-command (#972, #1117)

This commit is contained in:
ORelio 2021-01-30 23:41:22 +01:00
parent 38a890f840
commit f5f1a22b93

View file

@ -0,0 +1,11 @@
//MCCScript 1.0
string[] commands = new[] {
"send command1",
"send command2",
"send command3"
};
int randomIndex = new Random().Next(0, commands.Length);
string randomCommand = commands[randomIndex];
MCC.PerformInternalCommand(randomCommand);