Path
Path is one of the basic elements in a project, consisting of multiple point links that can be used as unit movement routes.
Functions
get_path_by_scene_id
Get path by scene ID.
Parameter
Return
cli.get_path_by_scene_id(scene_id)
get_lua_path_from_py
Create paths from py objects.
Parameter
Return
path.get_lua_path_from_py(py_path)
has_tag
Whether the path has a tag or not.
Parameter
Return
remove_path
Remove path.
add_point
Add a point to a path.
Parameters
path:add_point(index, point)
remove_point
Remove a point from a path.
Parameter
add_tag
Adds a tag to a path.
Parameter
remove_tag
Remove a tag from a path.
Parameter
get_point_count
Get the number of points in the path.
create_path
Create a path starting with a point.
Parameter
Return
path.create_path(start_point)