add pathfinding.set_avoided_tags

This commit is contained in:
MihailRis
2025-08-31 15:52:23 +03:00
parent 5204cfedf5
commit 5e3373313b
7 changed files with 46 additions and 12 deletions
+1 -1
View File
@@ -8,5 +8,5 @@
"selectable": false,
"replaceable": true,
"translucent": true,
"tags": ["base:liquid"]
"tags": ["core:liquid"]
}
+1
View File
@@ -6,6 +6,7 @@ local tsf = entity.transform
agent = pathfinding.create_agent()
pathfinding.set_max_visited(agent, 1e4)
pathfinding.set_avoided_tags(agent, {"core:liquid"})
function set_target(new_target)
target = new_target