# Old Setup

### Old AI Setup

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.

<br>

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.

<figure><img src="https://lh7-us.googleusercontent.com/bO9CRa5xbKF3RJTFm7iZ-RLbJpEz_oWU_yF8i-IMHMANM1kKfl-zaN7vavkgnmK1inhHQ3KMXbCq2VFh0-tY86nZIuDV_ZPLpVPHuPN1XsUvpMRkIZdMMiT08byOnLODpJo5F4-unlMZBtq_E0mAY5Q" alt=""><figcaption></figcaption></figure>

After that, you need to assign the ‘Cowsins AI, AI Health Manager and Nav Mesh Agent’ to the GameObject.

<br>

You also need to bake a [NavMesh](https://www.youtube.com/watch?v=atCOd4o7tG4\&t=263s) (Video by Code Monkey) in order for the AI to be able to walk around on the ground.

### Old Animation Setup

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.&#x20;

<figure><img src="https://lh7-us.googleusercontent.com/CAh7iWIMXCHsQMV_z1DZcFXTw1214rJ1xYZzzQkdq3J4bmqJYH5L71f2RH-qz5GT7IUK9ela9YNi1-Q_HInI7R3iydqiUDsq0_DKN7saFyeoexYLk5iNuRGZ18mcE-AabkTracotTtYwVKir9p-1Or0" alt=""><figcaption></figcaption></figure>

After that, drag the animator controller as a component of the AI and then assign it to the ‘Shooter Animator’ variable.

<br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cowsins-ai.gitbook.io/cowsins-ai/ai-setup/old-setup.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
