add 'total_visited' to route & refactor

This commit is contained in:
MihailRis
2025-08-28 21:49:02 +03:00
parent 174a3c6871
commit fdf55ec64d
4 changed files with 81 additions and 64 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ local started
local tsf = entity.transform
agent = pathfinding.create_agent()
pathfinding.set_max_visited(agent, 1e5)
pathfinding.set_max_visited(agent, 1e4)
function set_target(new_target)
target = new_target