How to check if player no longer can see pawn(AI)

The linetrace setup:

  • The starting location would be the camera of your player
  • The end location would be the location of your pawn (If you have multiple pawns place them all in an array and fire the line trace with a foreachloop for multiple end points.)
  • After the line trace module cast it to your pawn (I forgot to add it to the pic but the outputs are working with a cast)