# Using Motion Warping

**Soulslike Framework** does not come with Motion Warping by default. However, it is very easy to enable it and get it going on your project.

Start by enabling the **Motion Warping** plugin:

<figure><img src="/files/LtFsMcO679ea2flVzQtq" alt=""><figcaption></figcaption></figure>

Head inside the **Soulslike Enemy (B\_Soulslike\_Enemy)** class and add a **Motion Warping** component:

<figure><img src="/files/0NnH1Dh1eFPURHzmRMTU" alt=""><figcaption></figcaption></figure>

Next, in the event graph, find the **Event PerformAbility** method. Adjust it like so:

<figure><img src="/files/rbSAfG1VDFIaPUYI4x4t" alt=""><figcaption></figcaption></figure>

That's basically it! Now the warp target will be updated/cleared when the **Enemy** is executing an attack. The final step is to use the plugin provided **MotionWarping Notify State** in the enemy's montages:

<figure><img src="/files/9iYmKjTeXJS1kNdaTrpg" alt=""><figcaption></figcaption></figure>

{% hint style="danger" %}
For Motion Warping to work, your animation sequence must have **Root Motion enabled.**
{% endhint %}

You can follow the same logic and implement it for the player as well.

1. Add the Motion Warping component.
2. Adjust methods where an attack montage is being played so it updates/clears the warp target.
3. Use the Motion Warping notify.


---

# 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://soulslike-framework.isik.vip/extending-functionality/using-motion-warping.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.
