I’m starting in visual scripting but I think what I did is not bad (tell me if it is). I trace a square rotated 45° with a start and an end at the same distance. Then I check the closest actor in the square with a maximum distance from the player character, to respect a cone shape (a square cut in half). The prob is I can only have a cone with fov 90°.
Here is my fonction if it can help :
(yes, start and end are the same, there are two same pieces of script, to adjust if needed)
