This function resets the given Time Source, resetting its timer and repetition information.
After calling this function, you will need to start the Time Source again for it to count down.
time_source_reset(id);
Argument | Type | Description |
---|---|---|
id | Time Source | The Time Source to reset |
N/A
// Room Start event
time_source_reset(global.spawn_time_source);
time_source_start(global.spawn_time_source);
This code will reset the given Time Source whenever a new room starts, and then start the Time Source again.