path_get_number(index);
Argument | Description |
---|---|
index | The index of the path to check. |
Returns: Real.
This function can be used to return the number of points on a
path.
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.