Trying to get my stealth game to work, and maybe I just have too many states for my EnemyAI, but i seem to fumble on a few things. I have bookmarks at 32, 55 and 59 because i feel that these are the problematic bits.
I'm trying to get the AI to have these states
FindRoute (Doesnt work): find closest waypoint, and go to it
Patrol: Walks waypoints
SuspiciousWalk: Enemy thinks it sees something, so it walks towards.
SuspiciousSTop: Enemy lost sight of curious object
Alerted: walks to the area where the player madea noise or was last seen
Attacking: attacks player
There's a few timers setup to take care of how long an enemy can be in Suspicious mode, and attacking mode. Some of the timers are triggered when an enemy loses line of sight with player, or if enemy gains line of sight. Is there an easier way to do this, like am I over thinking it?