Hi! I’m making a personal project based on Dishonored 2 and I’m currently trying to implement the detection meter. One of the issues I have is trying to get a reference of actors based on what my player can see.
If my player can see the enemy and the enemy can see them, I can position my meter on the enemy’s head. If the player cannot see the enemy but the enemy can see them, then my meter appears on the side of the screen. I think I have the offscreen indicator working, as it only moves on the edge of the screen but I need to know if my player can see the enemy for the mechanic to work properly.
I tried the line of sight node but that’s not exactly the right functionality I had in mind. I also thought about using a trace but wasn’t sure how to go about that.