add pathfinding.set_jump_height
This commit is contained in:
@@ -5,12 +5,16 @@ local started
|
||||
local tsf = entity.transform
|
||||
|
||||
agent = pathfinding.create_agent()
|
||||
pathfinding.set_max_visited(agent, 100000)
|
||||
pathfinding.set_max_visited(agent, 1e5)
|
||||
|
||||
function set_target(new_target)
|
||||
target = new_target
|
||||
end
|
||||
|
||||
function set_jump_height(height)
|
||||
pathfinding.set_jump_height(agent, height)
|
||||
end
|
||||
|
||||
function get_target()
|
||||
return target
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user