replace set_avoided_tags with avoid_tag & add 'cost' argument

This commit is contained in:
MihailRis
2025-08-31 21:12:07 +03:00
parent 3c9c4c403c
commit c06636053d
6 changed files with 44 additions and 33 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ local tsf = entity.transform
agent = pathfinding.create_agent()
pathfinding.set_max_visited(agent, 1e4)
pathfinding.set_avoided_tags(agent, {"core:liquid"})
pathfinding.avoid_tag(agent, "core:liquid", 8)
function set_target(new_target)
target = new_target