Check if point is in view. Down below is my enemy spawn script.

Check if point is in view. within(point) # False line.