path_duplicate

This function takes a path and copies it into a new path. The new path is created in the process, and its index is returned to be used in all further calls to use this new path.

 

Syntax:

path_duplicate(index);

ArgumentTypeDescription
indexPath AssetThe index of the existing path to duplicate.

 

Returns:

Path Asset

 

Example:

mypath = path_duplicate(choose(pth_1, pth_2, pth_3, pth_4));

The above code chooses one of four path resources and duplicates it, storing the index of the new path in the variable "mypath".