UNREAL UE 4 - how to avoid a character from teleporting inside an static mesh?

Hi, i have 2 characters, one can teleport in front of the other one, for this i created a box colision and located it in front of character A, inside its BP, this way every time i press X key character B teleports in front of Character A, my problem is that if character A is in front of a Wall… Character B teleports at the other side of the Wall, or if i am in front of a rock, Character B teleports inside that rock, how can i avoid character B from teleporting if this box colision is inside something like an statick mesh, Wall, rock?

Thanks and please share BP images.

Why don’t you share your BPs? Does sweep not work?