# ScheduleCall

Script
4.9.5.0 CE
bool
object obj Object in which to call the function. Can be 0 in local calls.
string function Name of the function to call.
int delay Delay after which the first call is made. If repeat is greather than 1, this is also the delay inbetween subsequent calls.
int repeat Number of calls. If 0 or not specified, the call is made exactly once.
...
Additional parameters which are passed to the function called.
Calls a function after a specified delay.
This function is implemented in System.c4g using the effect "IntScheduleCall" in function Call.
ScheduleCall(FindObject(Clonk), "Redefine", 500, 0, MCLK);
Calls the function "Redefine" in a clonk with a delay of 500 ticks and passes "MCLK" as additional parameter. This will cause the clonk to change into a magician after 500 frames unless the call is cancelled earlier using ClearScheduleCall.
Schedule
ClearScheduleCall
PeterW
2005-08