I've searched far and wide and can't seem to find any solution to this. I'm trying to make an NPC that you try to hide from and I want to make it where it will detect you if you travel within its set FOV and within a certain distance.
Image Example: Image
I want something that is entirely server-side, I can do with clientside, but I want to avoid clientside checking as much as possible.
I've seen people recommend RayCasting but I can only get it to cast in one straight line and not in a FOV (Field Of View) like I'm attempting to.
Any ideas?

1 comment