# How to detect character moving?

**URL:** <https://forums.unrealengine.com/t/how-to-detect-character-moving/2746159>\
**Category:** Programming & Scripting\
**Tags:** beginner, unreal-engine, question, Blueprint\
**Created:** [August 24, 2026, 5:47pm UTC](https://forums.unrealengine.com/t/how-to-detect-character-moving/2746159 "2026-08-24T17:47:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zander\_Lawrence](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Zander\_Lawrence](https://forums.unrealengine.com/u/Zander_Lawrence)\
**Post date:** [August 24, 2026, 5:47pm UTC](https://forums.unrealengine.com/t/how-to-detect-character-moving/2746159/1 "2026-08-24T17:47:07Z")

</div>

![Moving](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/c/0/0c099bdc10e6dafcdb4b298f1911f94c7d2f565a.png)  
So, I tried to make a blueprint so the character can´t move while the attack variable is on, or he´ll be attacked. But it didn´t work, the character is attacked even if he stops moving. I tried **is walking** and **is moving on ground** , but neither worked. What can I do to solve this?

---

<div class="post-metadata">

**Author:** ![Auran131](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Auran131](https://forums.unrealengine.com/u/Auran131)\
**Post date:** [August 25, 2026, 2:56am UTC](https://forums.unrealengine.com/t/how-to-detect-character-moving/2746159/2 "2026-08-25T02:56:08Z")

</div>

better to make it event driven but to do that we need to define what you mean by ‘move’

ie intentional moving like player input, or derived movement like falling/knockback

if you mean intentional movement you could broadcast an event on input for example.

then have a separate ‘attack’ event that listens to the move event and if not on cooldown (delay) attack

---

<div class="post-metadata">

**Author:** ![BRGEzedeRocco](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/brgezederocco/32/1216890_2.png) [@BRGEzedeRocco](https://forums.unrealengine.com/u/BRGEzedeRocco)\
**Post date:** [August 25, 2026, 2:25pm UTC](https://forums.unrealengine.com/t/how-to-detect-character-moving/2746159/3 "2026-08-25T14:25:05Z")

</div>

Hello @Zander_Lawrence ,  
Something you could use to determine whether the character is moving is to get its Velocity and use a Vector Length node to get the speed value.  
You can then compare that value against one that makes sense for your use case and, based on the result, determine whether the character is actually moving or not. I think this would be a more reliable way to check movement than using Is Walking or Is Moving On Ground.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/9/1/491d2dff67b25aa7ceb793d918c45dfe1ccfeab0.png)

Hope it helps!
