Announcement

Collapse
No announcement yet.

MoveTo Pathfinding - dynamic update position

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    MoveTo Pathfinding - dynamic update position

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

    Click image for larger version

Name:	behavior.png
Views:	1
Size:	47.9 KB
ID:	1134206

    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

    #2
    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!
    Senior AI Programmer @ Epic Games by day, AI programmer at night!
    My slow-blog on random AI thing (including UE4 AI).
    My no longer active UE4 AI blog.

    Comment


      #3
      Originally posted by MieszkoZ View Post
      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! It's awesome

      Comment

      Working...
      X