Ledge Movement based on Camera and Player Direction

Hello Everyone,

I am trying to develop a ledge climbing and movement system for a SideScroller game. My character can move side to side on the ledge using A D keys but I would like to make it move using the W S keys too and disable the keys according to the player’s facing direction. I’ll attach some screen shots so the explanation is a bit more clear and precise. I’ll also attach the screen shot of the Blueprint.


Blueprint Function Code

Any help would or link to some demo/tutorial would be appreciated!

Thanks