Executes a specified script command after a specified delay.
This function is implemented in System.c4g using the
effect "IntSchedule" in function
eval.
Accordingly, the specified script can be a single command only. It may not contain multiple commands separated by ";".
Schedule("Explode(50)", 1000, 0, "FindObject(CLNK));
Makes a clonk explode after 1000 ticks delay.
Schedule("SetWealth(GetPlayerByIndex(0), GetWealth(GetPlayerByIndex(0)) + 1)", 1, 100);"
Gives one unit of money per frame to the first player for 100 frames. Notice that if the first player is eliminated, the donations will continue for the next (first) player, since the receiving player is determined anew in each execution.