# Create a Shootable Weapon From Scratch

## Overview

Here are the steps for creating a shootable weapon from scratch. Let's use the pistol animations as an example for this exercise

## Animations

The animations for any Shootable weapon should be an upped body animation.

This animation will be masked to be played on the Upper Body Layer; Since these animations can be used while running, jumping, etc.

<figure><img src="https://963537199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lzhr1XSMzMqNXjRnNlb%2Fuploads%2F6OFau22V29Hd0fbmkRsC%2Fimage.png?alt=media&#x26;token=f339b33b-a6be-4251-92e2-172ba8fdd0e1" alt=""><figcaption></figcaption></figure>

To create a correct blend-tree, Aim and Fire animations in all directions are needed.&#x20;

South Positive, West, North, East, and South Negative animations are needed.

The shootable weapon can be used with only one animation when using **strafing** on the Animal Controller) but it won't be useful when riding a Horse. That is due to the horse moving on a different direction than the aiming direction&#x20;

### Aim Animations

The main aim animation needed is the North Aim animation (Aiming Forward)

<figure><img src="https://963537199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lzhr1XSMzMqNXjRnNlb%2Fuploads%2F9D1LspkU2flfzBfD5J0N%2F3dsmax_roED3Ge3VS.gif?alt=media&#x26;token=576adab7-4618-4a93-8b62-263464f8daf7" alt="" width="563"><figcaption><p>-South, West, North, East, and +South Animatinos for Aiming horizontally</p></figcaption></figure>

With these 5 animations you can create the proper Blendtree using the **Aim Horizontal** Animator Parameter

<figure><img src="https://963537199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lzhr1XSMzMqNXjRnNlb%2Fuploads%2FSBC6AIF36Ky6NqwpMlnO%2FUnity_NcaZYcego5.gif?alt=media&#x26;token=bb827157-25e3-46c6-96e5-231b51af7059" alt="" width="563"><figcaption></figcaption></figure>

### Fire Animations

<figure><img src="https://963537199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lzhr1XSMzMqNXjRnNlb%2Fuploads%2Fb0RpjG8Ql6TpyuAXo78w%2F3dsmax_dZV2hoeW0Y.gif?alt=media&#x26;token=80f47291-832a-4e36-a065-4ad0e09feaac" alt="" width="563"><figcaption><p>-South, West, North, East, and +South Animatinos for Firing horizontally</p></figcaption></figure>

With these 5 animations you can create the proper Blendtree using the **Aim Horizontal** Animator Parameter

<figure><img src="https://963537199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lzhr1XSMzMqNXjRnNlb%2Fuploads%2FJq77QM9ufNeAF4otE26R%2FUnity_p6LQeosO6F.gif?alt=media&#x26;token=06dfde59-df0a-45b3-8420-aa8996abd0e9" alt="" width="563"><figcaption></figcaption></figure>

### Reload Animations

If the weapon can reload you will apply only one animation.

<figure><img src="https://963537199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lzhr1XSMzMqNXjRnNlb%2Fuploads%2FVYM9l1zZ2R4NbHKSeD8r%2FUnity_Co5eq3bw5s.gif?alt=media&#x26;token=973d67dd-48f6-4dd2-abc7-de213d611fad" alt="" width="548"><figcaption></figcaption></figure>

### Arm Pose Animations

There are several Arm Pose Animations created to hold weapons inside the Animal Controler, you can find those here in this path:

<figure><img src="https://963537199-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lzhr1XSMzMqNXjRnNlb%2Fuploads%2FcwryhhUAW9kJFGHbdYFt%2Fimage.png?alt=media&#x26;token=ce291878-c1f4-4522-86a0-4a541b4213af" alt="" width="407"><figcaption></figcaption></figure>

These are simple poses that are played in loop while the weapon is equipped

## Animator

## Mode

## Abilities

## IK
