mirror of
https://github.com/lubosz/overte.git
synced 2025-04-06 16:22:33 +02:00
18 lines
No EOL
359 B
JavaScript
18 lines
No EOL
359 B
JavaScript
var messageIndex = 1;
|
|
|
|
var messageRate = 500;
|
|
function sendMessage(){
|
|
print('SENDING MESSAGE')
|
|
Messages.sendMessage('messageTest',messageIndex)
|
|
messageIndex++;
|
|
}
|
|
|
|
function cleanup(){
|
|
Script.clearInterval(messageInterval);
|
|
}
|
|
|
|
var messageInterval = Script.setInterval(function(){
|
|
sendMessage();
|
|
},messageRate);
|
|
|
|
Script.scriptEnding.connect(cleanup); |