ai – How to build path to cover for bot if cover moves while player moves?


I’m changing cover positions depending of player position (to keep obstacle between player and cover point). But when my bot using pathfinding algorithms to build path to that cover, he will spend some time for moving by it. When it reaches the final destination, the real cover point will be moved and bot will not be in cover anymore.

So, how to correctly build path to cover to lead bot to right position when player moves?