I implemented combat (for the player) and allowing AI to follow a path, but I can’t figure out the best way to implement combat for the AI. My game is meant to be a stealth shooter, so I want the AI to call in reinforcements when you are spotted and the game to get much harder, but to allow the player to hide and the AI will slowly return to their positions. The thing is that I can’t figure out how to have enemies:
- Spot the player
- Stop current “patrol” and chase after player
- Call in reinforcements from a certain distance
- Implement combat so that AI is smart (will use cover), but not unbeatable (no instant reload, aimbot, instant turn, etc…)
- …
My code is at: https://github.com/novasharper/LocotusDesperatus