# How to code a realistic player dodge UE4?

**URL:** <https://forums.unrealengine.com/t/how-to-code-a-realistic-player-dodge-ue4/244951>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [August 11, 2021, 3:47am UTC](https://forums.unrealengine.com/t/how-to-code-a-realistic-player-dodge-ue4/244951 "2021-08-11T03:47:23Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![usa423](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/usa423/32/918773_2.png) [@usa423](https://forums.unrealengine.com/u/usa423)\
**Post date:** [August 14, 2021, 7:11am UTC](https://forums.unrealengine.com/t/how-to-code-a-realistic-player-dodge-ue4/244951/3 "2021-08-14T07:11:19Z")

</div>

Years ago I bought [this dodge roll kit by Hammerhead](https://www.youtube.com/redirect?event=video_description&redir_token=QUFFLUhqbnNKMFU0d25UNlhyT0xWR3ljMldxeG5YN3FsQXxBQ3Jtc0tsWEo2RzBXeVVTQ2VGOVdqeGtiOXY3REQ5Vk44anZaUUZoN0ZQS05Fc3R1MVBGVGlaa2JFTkxjN0VjN2oyR21ydGNiZjZCUTNJWE9qVkZTUE44aWVSeDJUa3FpQmZHeE1PY1hCcl9WMFVCWHl6Tjdzcw&q=https%3A%2F%2Fwww.unrealengine.com%2Fmarketplace%2Frolls-and-dodges-animation-set).

And have a decent sized thread about it [here](https://forums.unrealengine.com/t/need-help-setting-up-an-8-way-roll-dodge-blend-space/132465).

I think the first thing you need to consider is how or what means you will use for propulsion of your roll. I didn’t use root motion in the animations but launch character.

I think what you are looking for are disable input and enable input for starting and stopping player movement while rolling. The key seems to be on the placement of those two nodes in the code of your roll.

---

_[View the full topic](https://forums.unrealengine.com/t/how-to-code-a-realistic-player-dodge-ue4/244951)._
