replace set_avoided_tags with avoid_tag & add 'cost' argument
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user