How can I count how many steps my character is taking?

Is there a way to count how many steps my character is taking by using the SK_Mannequin_PhysicsAsset foot_r and foot_l ?

The plan is that I need the character to make exactly x more steps after I release forward and I do not want just a simple delay.

You could attach a socket to each foot, then attach a box collision to each foot socket. When they overlap with another object add +1 to an int that would be a “step counter”.

What about an animation notification? Wouldn’t that be more efficient?

I suppose it would, though honestly I know nothing about animation so I couldn’t answer that with certainty. This solution is the way I would do it due to the limited knowledge I have on the subject of animation in general.

Animation modification could only apply at a certain part of the animation (a key frame) however if you step on something that you hit before that key animation is reached (ex on a slope) then that would not be as accurate.

, thank you for the info, i had the same idea about adding a collision box on the heel i just forgot that i had to add a socket beforehand :slight_smile:

I’m happy to help!