timeline_clear

With this function you can clear a specific time line of "moments", removing all codes and actions for that time line and leaving it empty.

 

Syntax:

timeline_clear(ind);

ArgumentTypeDescription
indTimeline AssetThe index of the timeline to clear.

 

Returns:

N/A

 

Example:

if (timeline_position > 200)
{
    timeline_clear(global.tl);
    timeline_index = -1;
}

The above code will clear the specified time line indexed by the variable "global.tl" of all moments when a specific moment has been passed.