Enemy eyesight triangle problem

So i wanna make a top down stealth game with armed guards. I already have a red triangle that follows the guard with a point. I manually add the triangle to the scene. if the player is inside that triangle, the boolean variable of “alerted” goes to true. When the boolean variable alerted is true, the guard rotates toward the player, runs up to the player and starts shooting it. The variable also switches to true when the player shoots within 1000 pixels of the guards. However, if i try to add multiple guards to the scene, one single guard claims every triangle and the rest is blind. How do i fix this?

Where you see Enemies replace it with your Guards
HPBars replace with your triangle object

1 Like

W bro thank you so much

1 Like