Black Ops III

IsVisibleByPlayer

Returns 1 if the actor can be seen by a player

Example:

if( IsVisibleByPlayer(ent) )