How to program motion warping for climbing system?

Hi All,

I am trying to program a climbing system for my game (similar to assassins creed but much more basic). I was just wondering how I would go about it?

I was thinking that I would use a ray cast to detect all the possible climbing points above the player and then use motion warping to move the player to that position when the climb button is pressed.

How would I program this motion warping to happen during an animation?

Thanks!
Josh