How to detect character moving?


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?

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

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.

Hope it helps!