•I learnt about AI with patrolling path that follows the player at sight, gun mechanics, game state, health system, ammo system, UI and blending animation.
Goals
• Make an AI that can fight with different attacks.
Challenges faced and how I overcame them.
• The AI was not moving.
Fix: The patrolling path points z-axis was going under the ground, so I increased the height of the z-axis
• Player’s hits were not registered.
Fix:Changed the collision sphere radius around the AI and it started working.
• Problems with the UI not showing the ammo count.
Fix: It was a problem with wrong variable being connected and the layer of the ammo number UI.
Testing
• AI not registering hit from the player.
Fix: Changed the collision sphere radius around the bullet and it started working.
• AI was not blowing up after coming towards the player.
Fix: It was a problem with wrong variable being connected and the death event not being triggered.