Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

AI Behavior changes -- August 4, 2023 Locked

A topic by CodeCrunchers created Aug 05, 2023 Views: 40
This topic is locked
Viewing posts 1 to 1
Developer

Hayden Rodgers

6:40 p.m.

This week I worked on making the AI replicate within the multiplayer. When loading with multiple players the AI would crash the game, the fix to this problem was to add a check into the code to see if the AI had an AIController. Had to implement this for the client that would join the host since the AI would not have a controller for the client but the server/host would need to have this since AI is updated through the server.

Another issue of this week was making the AI choose between the different players within a level. The AI would religiously chase after the first player that they would register. To change this I had to set the AI to change the target and the other AI was to have it check if it was within 5 meters of the player that it was chasing