A_CheckSightOrRange
A_CheckSightOrRange (float distance, int offset)
A_CheckSightOrRange (float distance, str "state")
(New from 2.5.0)
Jumps if the calling actor is beyond distance range from all player pawns and there is no possible line of sight between the center of the calling actor and that of any player pawn. In other words, this function continues to the next state in the sequence if either the sight check or the range check were true; and jumps otherwise.
This function does not account for whether or not a player is actually looking at the calling actor or not; as long as there is a possible line of sight (i.e. at least one player is in a position where they could see the calling actor if they faced the right direction), no jump will occur. And on the other hand, the jump might happen even though the actor is partially seen by a player.
Note that like A_CheckSight, A_CheckSightOrRange also counts for actors being viewed through cameras and co-op spy. It does not, however, check if the actor is being viewed through a camera texture.