This function can be used to return whether the path is flagged as closed (true) or open (false), i.e. whether the path loops or if it has a definitive beginning and end.
The default for a newly created path is closed (true).
path_get_closed(index);
Argument | Type | Description |
---|---|---|
index | Path Asset | The index of the path to check. |
state = path_get_closed(pth_Patrol);
This will set "state" to either true or false depending on the closed state of the path indexed in "pth_Patrol".