time_source_get_children

For the given Time Source, this function returns an array containing the Time Sources of its children.

 

Syntax:

time_source_get_children(id);

ArgumentTypeDescription
idTime SourceThe Time Source to get the children of

 

Returns:

Array of Time Source

 

Example:

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.