How do I make a cover system?

Hi guys, i started to make a cover system like, i have two line traces, one in the bottom one on the upper body. Well if the upper body line trace hits something then he should take cover if not see if the bottom one hit something. (Well actually I started just with one for testing). BUT I want the character stick to the wall (take cover) and make a animation, well i’ve got the animation ((just in from the idle state to a cover state and back)in the anim. Blueprint) but i dont know how to stick the character onto the wall. I tested with attach actor to actor and actor to component, but i go inside the object or on the other side of it. Please help!