# Invector Integration

### Step 1: Enable Invector support

Enable Invector support from the welcome window (<mark style="color:green;">Tools/Parkour & Climbing System/Welcome Window</mark>)

<div align="left"><figure><img src="/files/QFDqIyQteuEWaXQJywd7" alt=""><figcaption></figcaption></figure></div>

### Step 2: Add parkour and climbing animations

Open Animator Controller from <mark style="color:green;">Assets\Fantacode Studios\Parkour And Climbing System\Game\Animators</mark>, copy all state machines and paste it on your Animator Controller, and enable <mark style="color:green;">**Ik Pass**</mark>

<div align="left"><figure><img src="/files/3bCnJSdsDhVwIOghWA3c" alt=""><figcaption></figcaption></figure></div>

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

### Step 3: Integration&#x20;

You can easily integrate our system into the Invector controller with a single click

Open helper window

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

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

**Player Template:** Invector controllers such as shooter, melee, or basic&#x20;

**Animator Controller:** Animator controller of the currently assigned player

Assign both fields and click on the **Integrate** button

### Step 4: Comment default jump function calling

**script: vThirdPersonInput**

<div align="left"><figure><img src="/files/Wnnkm6gvbN2jkTIgTjtS" alt=""><figcaption></figcaption></figure></div>

### Step 5: Add ledge movement code

Call our **LedgeMovement** function from the **MoveCharacter** function in the **vThirdPersonMotor** script

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

```csharp
//Code for stopping the player's movement when it's on the ledge
(moveDirection, targetBodyVelocity) = GetComponent<FS_ParkourSystem.ParkourController>().LedgeMovement(moveDirection, targetBodyVelocity);
```

### Add Invector Default jump

Activate the "Vertical Jump" option in the `InvectorIntegrationHelper` script attached to the player.

<div align="left"><figure><img src="/files/G3GL7DGKm7MCfQpN7hix" alt=""><figcaption></figcaption></figure></div>


---

# 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://fantacode.gitbook.io/parkour-and-climbing-system/invector-integration.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.
