# Extending Weapon Animsets

### 1. Extending the Primary Animset Asset

Open the **PDA\_WeaponAnimset** primary data asset. Add a new property of type **Anim Montage (Soft Reference).** Connect it to **Event SetupAnimData:**

<figure><img src="https://3303637552-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOAGs3il6rJbkejwPOlEP%2Fuploads%2FD8WqwfbNv8pADefijdoF%2Fimage.png?alt=media&#x26;token=fb7472e9-58ef-41d6-86af-962704654f2f" alt=""><figcaption><p>The event is used <strong>ONLY</strong> for the Utility editor tool <strong>EUW_WeaponAnimsetCreator</strong></p></figcaption></figure>

### 2. Adjusting the Soulslike Weapon Animset Creator Utility Tool

Head inside **EUW\_WeaponAnimsetCreator located in /SoulslikeFramework/\_Utility/Creators.** Promote the new pin that we've created inside the **primary asset** into a variable:

<figure><img src="https://3303637552-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOAGs3il6rJbkejwPOlEP%2Fuploads%2Fso2iqFNEygm1DYbVQL59%2Fimage.png?alt=media&#x26;token=7816a654-84dd-4986-a636-61218f78d573" alt=""><figcaption></figcaption></figure>

Add a new **Single Property View** component to the vertical box inside the Editor Utility Widget. Give it an appropriate name, and fill in the **Property Name** field with the new variable we've created inside **EUW\_WeaponAnimsetCreator:**

<figure><img src="https://3303637552-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOAGs3il6rJbkejwPOlEP%2Fuploads%2FFllHRZOtZ1MdfTZoG7Qi%2Fimage.png?alt=media&#x26;token=af1c5e79-04b2-4483-84fb-24e7e174caf4" alt=""><figcaption></figcaption></figure>

Finally, ensure that this new **Single Property View** is initialized on **Event PreConstruct**:

<figure><img src="https://3303637552-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOAGs3il6rJbkejwPOlEP%2Fuploads%2FClivsrpjZF3mvv96mCCK%2Fimage.png?alt=media&#x26;token=3ad31fc6-a93b-4bf6-8f2b-7ffbc45bedd5" alt=""><figcaption></figcaption></figure>

### 3. Creating the Relevant Montage

Create your montage. Ensure that is a **Root Motion** animation (highly preferred for combat):

<figure><img src="https://3303637552-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOAGs3il6rJbkejwPOlEP%2Fuploads%2FA4TehbPTYViGAlSxPhJq%2Fimage.png?alt=media&#x26;token=9f5e3306-291b-40e0-b0d6-d3a72efd7402" alt=""><figcaption></figcaption></figure>

You can [refer to this category for more information related to creating montages/using notifies.](https://soulslike-framework.isik.vip/getting-started/quickstart/setup-custom-montages)

### 4. Creating the Relevant Action

Create your action. This is a simple example for a **Sprint Attack** action:

<figure><img src="https://3303637552-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOAGs3il6rJbkejwPOlEP%2Fuploads%2FXiL2BzuxMAqHQL9eq7YN%2Fimage.png?alt=media&#x26;token=7fb9d682-81c0-4708-abad-f9800fa98884" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3303637552-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOAGs3il6rJbkejwPOlEP%2Fuploads%2F2ZEZmyL7UelJPmJaZeEN%2Fimage.png?alt=media&#x26;token=bb3c2354-82ab-404a-b494-68164a68c7a4" alt=""><figcaption></figcaption></figure>

You can [refer to this category for more information on creating Actions.](https://soulslike-framework.isik.vip/workflow/editor)

### 5. Using the new Action

Adjust the logic where you want to implement the new attack. For e.g, if we want our **Sprint Attack** to work with the *Right hand light attack,* we can adjust the event for **IA\_RightHandAttack** (inside B\_Soulslike\_Character) and add a simple condition like this:

<figure><img src="https://3303637552-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOAGs3il6rJbkejwPOlEP%2Fuploads%2Fipgq8GsgWZoa99NAyNE3%2Fimage.png?alt=media&#x26;token=565fb380-a820-4f75-aad6-0a4351dac27f" alt=""><figcaption></figcaption></figure>
