Skeletal mesh disappear

Thanks, but how to block the way to the camera? Just put boxing collisions? Then there will be a problem with the fact that the enemy beats the character, can you advise what that in this case?