Disable input if pawn in motion unreal engine

i want to disable input if ball is in motion.i wrote code in event tick it make slow done ball movement as 10-20 square pr click.

how to disable input until ball in motion like roller splat game.

Disable the input after the action. Re-enable it when the ball stops – you would surely have some function for stopping a ball or an event hit or something. There’s no need to check the velocity or do anything on tick.

it permanetly stop ball from moving

You hooked up the controller to the wrong pin in Enable Input.

Even so, if it’s really like roller splat, 0.2 seconds is not enough. What happens when the ball hits the wall? Can you enable input then?

it still not working.

First, you should really have the hit event in the Ball BP. Why cast to the BallPlayer every time if you can do in the the ball directly?

Second, make sure the hit events are fired. The wall components/actor and the ball must have Simulation Generates Hit Event box checked.