For the given Time Source, this function returns an array containing the Time Sources of its children.
time_source_get_children(id);
Argument | Type | Description |
---|---|---|
id | Time Source | The Time Source to get the children of |
Array of Time Source
var _children = time_source_get_children(time_source);
var _count = array_length(_children);
for (var i = 0; i < _count; i ++)
{
time_source_destroy(_children[i]);
}
time_source_destroy(time_source);
This code goes through all the children of a Time Source, and destroys them one-by-one.
At the end, it destroys the parent Time Source.