How to use the AI

This isn’t really a tutorial, it’s more like a compilation of frequently asked questions about the AI in the template.

 

Q: I added the enemy into my level but it doesn’t move at all, why?
A: You didn’t add a NavMeshVolume for it to walk on:
ai_navmesh

 

Q: How do I make the patrol example go where I want?
A: Add target points to the level and tell its array what they are:
ai_patrol

 

Q: How do I change the enemy damage?
A: For the soldier and patrol go to their projectile blueprint and change the amount.
ai_enemyprojectiledamage
A: For the zombie example open its base class blueprint and find the Attack Player event:
ai_zombiedamage

 

Q: How do I change the enemy weapon?
A: Open the enemy and change the mesh:
ai_expand

ai_changeweapon

 

Q: How do I change the firerate?
A: Open the behavior tree and change the interval.
ai_firerate

 

Q: How do I change the zombie speed?
A: In its movement component, set max walk speed (on this same screenshot you can see where the attack animation is placed)
zombiewalkspeed

 

Q: How do I change the enemy mesh?
A: Same as player mesh:

 

Q: How do I change the blood, increase the blood, decrease the blood, remove the blood?
A: It’s just a particle effect that gets spawned, you can change it inside the enemy blueprint where it says Event Point Damage:
ai_particle

 

Related tutorial:
How to integrate AI behavior toolkit