# Need actor to stop moving when I press a button.

**URL:** <https://forums.unrealengine.com/t/need-actor-to-stop-moving-when-i-press-a-button/2700960>\
**Category:** Blueprint\
**Tags:** unreal-engine, question\
**Created:** [February 19, 2026, 2:58pm UTC](https://forums.unrealengine.com/t/need-actor-to-stop-moving-when-i-press-a-button/2700960 "2026-02-19T14:58:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maplenuggets](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Maplenuggets](https://forums.unrealengine.com/u/Maplenuggets)\
**Post date:** [February 19, 2026, 2:58pm UTC](https://forums.unrealengine.com/t/need-actor-to-stop-moving-when-i-press-a-button/2700960/1 "2026-02-19T14:58:12Z")

</div>

Hi, I have recently set up my logic for moving an actor in a direction continuously. When I press the “break” it will trigger something. But I need it to stop moving when I press the break and move again when the break is not pressed. How do I stop it moving?

I essentially want the cart to move when the break is off and stop when the break is on.

Thank you 🙂

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/2/e/32e5a10930a3312182693ccf5c479d2f280e7366.png)

---

<div class="post-metadata">

**Author:** ![VKittyCat2022](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/vkittycat2022/32/1149005_2.png) [@VKittyCat2022](https://forums.unrealengine.com/u/VKittyCat2022)\
**Post date:** [February 19, 2026, 3:35pm UTC](https://forums.unrealengine.com/t/need-actor-to-stop-moving-when-i-press-a-button/2700960/2 "2026-02-19T15:35:41Z")

</div>

All you have to do is put a branch after event tick, hook it up to a variable, and set the variable to false when you press the button, then true when you release it.

You also might want to multiply the distance moved by delta seconds so your actor’s speed doesn’t vary with framerate.
