Alright, so here are your options:
- Constantly check the distance between the two characters.
- Add a collision shape (sphere, cube, or capsule) to the enemy character and check if it overlaps with the player character, or vice versa. (We went over how to achieve this one, just use a collision shape instead of the capsule component.)
- Add a collision shape to the player character and check if the enemy’s capsule component overlaps with it, or vice versa. (Explained this one too, you leave your current setup as it is and just add a collision shape to the other character, in this case the player.)
- Do a sphere trace on the enemy character’s location and check if it hits the player character, or vice versa.
Hope these help!
That’s a very scary enemy character btw