Old Setup
Last updated
Last updated
In order to create an AI, you need to think of several important things. If you are creating a AI with the ability to shoot, you need to create several animation states: ‘Aiming Idle, Aimed Walking, Firing, Walk and Idle.’ These animations are required in order for the script to work.
After that, you need to drag the model that you wish to use into the scene, unpack it and rename it to what you want. For the case of this documentation, I have named mine ‘Y Bot - Shooter’. This is what I will be assigning all the scripts to.
After that, you need to assign the ‘Cowsins AI, AI Health Manager and Nav Mesh Agent’ to the GameObject.
Next, the shooter animator needs to be assigned. This is where you create the animator controller that is used. A template controller is available in: ‘Assets > Cowsins AI > Animations > Core > ShooterTemplate.’ Duplicate this and rename it to what you want. Go into it and assign the animations necessary.
After that, drag the animator controller as a component of the AI and then assign it to the ‘Shooter Animator’ variable.
You also need to bake a (Video by Code Monkey) in order for the AI to be able to walk around on the ground.