Lua SetMain

Lua : SetMain
By default the main processing function is "Main". Calling this allows you to change the function which will be called every cycle. The current cycle will not be interrupted, so invoking this function multiple times in the same cycle will have no effect.

Parameters

 * (newMain)


 * newMain
 * Name of the new function (which takes no parameters) to use.