How to check if path between player and enemy is blocked?

I wish to check if the path between player and enemy is blocked by an obstacle. How can I achieve that?

Use a line trace with the “Start” being the player world location and the “End” being the enemy in question. Then check the “Hit” result and if it is anything BUT the enemy there is an obstacle in the way.

Oh, there is line trace, I just missed it.
Thanks!