Problems with AI


Author: Khumoyun Rustamov

Posted on 2/16/2023

For our project, codename: Element Clash, I was put in charge of the Artificial Intelligence systems ranging from simple enemies to bosses. However, so far I have only begun working on a minion enemy AI. I tried to get the AI to simply roam around the map, which turned out to be relatively easy. It was simply a MoveTo function with a GetRandomLocationInRadius function inserted to the location which was running in a loop with EventBegin play connecting to a custom event. The real issue arose when I tried to get the AI to recognize player and chase him. I went about it in a blueprint way. I set it up such that the AI would always be aware of the player's position and subtract distance from it. During the process of trying this, I forgot one key thing, compile, save, and test. By not doing this I found myself stuck after 2 hours of work because now my AI is doing nothing. I could not figure out where I broke it so I had to revert and try again. With a lot of staring at the screen, I figured out that the AI must have a pawnSensing component or else it would be like telling a blind man to follow someone when he sees them. Without fixing this issue I wouldn't be able to proceed to proceed to combat of the AI, so it would essentially render the game unplayable at its core. After 5 hours of hard work and tears, I was able to finally let my team know that they can Get Latest on Perforce, which, I have to tell you, was the best feeling ever. Stay tuned for more updates to come.

Get Element Clash

Leave a comment

Log in with itch.io to leave a comment.