# ScheduleCall

Script
5.1 OC
bool
object obj Object in which to call the function. `nil` for no object context.
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.ocg using the effect "IntScheduleCall" in function Call.
ScheduleCall(this, "Explode", 500, 0, 50);
Calls the function "Explode" in this object with a delay of 500 ticks and passes 50 as additional parameter. This will cause the object to explode with a strength of 50 after 500 frames unless the call is cancelled earlier using ClearScheduleCall.
Schedule
ClearScheduleCall
PeterW
2005-08