AI likes to stand and shoot forever with the rifle


Qasim Tareen

12/19/24

                     So I was finalizing some things for the showcase of our game, changing weapons, adding health, getting the AI to at least function, all that shenanigans when suddenly the AI will just keep shoot with the rifle equipped. They won't chase the player when they are out of range. I checked to see what was wrong and well I found my problem but I didn't know how to fix it in code. The AI was programmed to loop back into shooting.

                      The way I fixed it was pretty lame at the moment which was to add a check to see if its an AI or not then it will break off the shooting functionality. 

Get Action Chaos

Leave a comment

Log in with itch.io to leave a comment.