I can't fetch the updated params value in the construct's function after the timeout when trying to use setTimeout in the function script.
console.log("Before wait", localVars.ind)
setTimeout(function(){
console.log("After wait", localVars.ind);
runtime.objects.Text.getFirstInstance().text = ""+localVars.ind;runtime.globalVars.curentind++;
}, 300)