timeline_index;
Returns: Real
This variable holds the index of the time line currently
associated with the instance. You can set this to a particular time
line to use that one, or set it to -1 to stop using a time line for
the instance (if no time line is defined for the instance, -1 is
returned too). Note that this does not start the time line -
for that use the variable timeline_running.
if timeline_exists(global.tl)
{
timeline_index = global.tl;
}
The above code will assign the instance running the code a time line indexed in the variable "global.tl" if that time line exists.