How would I detect whether an entity is possibly "viewable" by the player?

Hello! I'd love to know if it's possible to detect when there isn't a wall between the player and a certain entity and the player could in theory turn to look at the entity. Things I've tried: > I first thought of using a type-specific looking at predicate and just run it facing the entity, but of course that didn't work as the looking at predicate is an entity property so just running the test facing the entity wont actually change the player's property. (at least thats what i think is happening) > > Then I thought to save the players rotation, rotate the player so they're facing the entity, run the test, then rotate them back. That is really buggy and ugly though even if run like once every 10 ticks. Any ideas would be amazing!
Continue to help post