Download

MoveTo Pathfinding - dynamic update position

Hi,
I’m using Behavior Tree and MoveTo action.

behavior.png

The problem is when player is moving. AI doesn’t update dynamically player position because earlier AI move to old player position… How can I solve this?

Thanks,
Patrick

When AI is asked to move to an Actor it will observe goal actor’s location and if it moves more then an arbitrary picked value away from path end the the path is automagically updated, without breaking current move request.

The BT you showed looks good, this should work as expected, which makes me guess that Enemy key in your EnemyBlackboard is of Vector type not an Actor type. Is that the case? It should be Actor for move to work as you expect.

Let me know!

It helped me! Thank you very much! :slight_smile: It’s awesome :slight_smile: