Look at this example for field of view
You can give any object you want to have a field of view like this. In this example, it first checks if the objects are close enough, then if they are it checks if it’s in the field of view of the player object based on the player’s look direction and how wide its fov is.
To add line of sight you need to add a collision detection raycast with geometry step.