Movement feedback -- e.g. events fired when ground too steep, etc.

I was observing an alpha test of my game and players found it unintuitive that they weren't able to move up slopes when they're too steep, because they still heard the footsteps and saw the legs animating.

I would like to have an event to hook when the player attempts to move forward or jump and can't due to the ground being too steep. That'll allow me to show a message and perhaps play a sound, like exertion grunts.

I would also like the animation to not how walking and the footsteps not play, if the player's attempted movement can't occur due to steepness.

Thank you!
 
For this use case I would create a new ability that stops the animation by setting the InputVector to 0 when the slope is too steep. You can then display a message as well.
 
If it's useful, I believe CharacterLocomotion has a SlopeFactor property that describes the angle of the character's current surface (1 being a flat surface).
 
Top