feat: add max passable height to AI config
This commit is contained in:
@@ -37,7 +37,7 @@ namespace Client.Domain.AI.State
|
||||
if (routeNeedsToBeAdjusted || distance >= Helper.GetAttackDistanceByConfig(worldHandler, config, hero, target) || !asyncPathMover.Pathfinder.HasLineOfSight(hero.Transform.Position, target.Transform.Position))
|
||||
{
|
||||
targetPosition = target.Transform.Position.Clone() as Vector3;
|
||||
asyncPathMover.MoveAsync(target.Transform.Position);
|
||||
asyncPathMover.MoveAsync(target.Transform.Position, config.Combat.MaxPassableHeight);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user