This question as well as your last one are better off in the "Starting with Gamestudio" section.
What you can do is trace from the player position to the wanted/ calculated camera position and if trace_hit then set the camera at the target location (or a little closer to the player).
"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual