Determining what an NPC can see (line of sight)

How do I determine whether a NPC character is able to see another actor or if this actor is hidden behind a wall or other asset?

Thank you in advance.

Do a LineTrace to their location, see if it hits anything and return false. There’s a good example in ShooterAiController in the FPS pack.

Thanks! Just what I was looking for!