I am trying to do the top down project from scratch.
I can already get the actor to move toward the mouse click:
Only I need to keep clicking several times to change its path and keep walking indefinitely.
I would like to know how to keep it moving while I hold the mouse button.
In the previous version (4.21) this code below fit perfectly, so I managed to do that (the condition was a variable that only became false when I released the mouse button):
But now I can't make this connection (4.22).
I searched for some functions and even searched the new documentation for this loop (While Loop), but nothing worked.
Link (While Loop BP UE4):
https://docs.unrealengine.com/en-US/Engine/Blueprints/UserGuide/FlowControl/index.html#whileloop
Player Blueprint:
As I could do this before, you can see in the answer to this question:
How to make my character walk by clicking and holding the mouse button?



SimpleMoveTofunction fails if there is not a valid path to the target. You should decouple the mouse down and up via a boolean variable so the entry point is mouse down going into the delay then test the boolean for is still pressed, try move and delay... loop back to test bool. On success or relase of button, set boll to false. \$\endgroup\$