[C++] Sprinting Using Enhanced Input

Hi, I am new to Unreal and trying to get a grasp on the Enhanced Input System, I tried setting up a basic sprint, and the player speed is updating to the correct values. However, it doesn’t work when the button is pressed, it is called at seemly random intervals.

Relevant Code and Set up:




Small update, I used the wrong picture for the code calling enchanedinputcomponent, in that I know it was calling look action. however updating to sprintAction did not fix the issue.

Hooked up the basic 3rd person template. Look at the working project. (right click uproject and generate the visual studio project)

You seem to have bound the action wrong in your project, hooking it up to lookaction instead of another custom input for sprint.