path_get_number

Returns the number of points on a path

Syntax:

path_get_number(index);


Argument Description
index The index of the path to check.


Returns: Real.


Description

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


Example:

if path_get_number(ai_path) > 1    {    path_start(ai_path, 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.


Back: Path Information
Next: path_get_point_speed
© Copyright YoYo Games Ltd. 2018 All Rights Reserved