path_get_number

This function can be used to return the number of points on a path.

 

Syntax:

path_get_number(index);

ArgumentTypeDescription
indexPath AssetThe index of the path to check.

 

Returns:

Real

 

Example:

if (path_get_number(pth_AI) > 1)
{
    path_start( pth_AI, 4, 3, 0);
}

The above code checks to see if a path has more than one point on it and if so it starts the instance moving along that path.