add pathfinding.set_avoided_tags
This commit is contained in:
@@ -8,5 +8,5 @@
|
||||
"selectable": false,
|
||||
"replaceable": true,
|
||||
"translucent": true,
|
||||
"tags": ["base:liquid"]
|
||||
"tags": ["core:liquid"]
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user