mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-12 06:21:50 +00:00
add pathfinding.set_avoided_tags
This commit is contained in:
parent
5204cfedf5
commit
5e3373313b
7 changed files with 46 additions and 12 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue