This is my first time posting here so apologies if I’m not providing enough details for y’all. I feel as if I’m going insane trying to do something I thought would be so simple and straightforward! For context, I am currently writing behavior states for an enemy guard in a stealth game project I have been working on. Basic things like patrolling, investigating, combat, and searching. I am trying to find out the exact frame the player breaks line of sight from the enemy. I will then, at that same frame, grab the players position and store it so the enemy can search around that area.
I am not sure if my problem is a lack of knowledge of C# or I need a break or something, probably a combination of both, but regardless I feel as if there should already be a system for that built into Unity already? No?
I need a break right now but I’ll be on the lookout for answers, and I’m ready to offer my code for help if that would be any use.
Thanks!
Lex Butcher is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1