Can I initiate a leaning on ledge animation with blueprints?

I’m using the Paper2D template and I’m trying to figure out how to initiate a leaning animation, similar to Smash Bros or Sonic The Hedgehog. Is it possible to do in blueprints? Thanks in advance for any help.

You can probably throw line traces straight down on tick to get the component under your pawn’s feet and do some x/z value checks.

You have to make sure that your character is actually on the component (either by checking collisions or comparing the coordinates), and that you’re within the desired range of the edge of the ledge.

Line trace