How to make something similar to "AI move to to", but with a cone shaped "sight"?

Here is my solution. Input for the Sight Degrees variable can be from 0 to 360.