# Setting up the TPM Component on a Player

## Applying the TPM Component

Applying a TPM Component to a Player is a different than applying it to an AI as it is a required component for any player damage scripts or the included General Target Bridge script, which give AI the ability to send damage to the player. For this tutorial, it is assumed that you have applied the General Target Bridge script to your Player, or at least a Player Damage equivalent script. This will automatically apply the TPM Component to your Player.

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

## Setting up the TPM Component on a Player

When the TPM Component is first added, you will have a warning message at the top of the component.

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

To resolve this, you will need to open the TPM Settings and apply a bone transform form inside your player to the Transform Source.

{% hint style="info" %}
**Note:** It is recommended that this is one of an Player's spine transforms as these typically have the best results and remain consistent.
{% endhint %}

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

You will then see a Gizmo drawn on your Player object indicated by a red sphere by default.

{% hint style="info" %}
**Note:** You can then make any adjustments using the Height Modifier within the TPM Component and the changes will be seen on the spherical Gizmo.
{% endhint %}

{% hint style="warning" %}
**Important:** Ensure that the gizmo does not go into the ground or go above the Player as this could make a target undetectable to AI.
{% endhint %}

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

Ensure everything is working correctly by watching the Target Position Modifier point during runtime. If your character controller supports crouching, ensure the position of the point properly adjusts to the height changes as it should continue to follow the set transform.

<figure><img src="/files/78gY354NHAmWHyf4VcN3" alt=""><figcaption></figcaption></figure>


---

# 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://black-horizon-studios.gitbook.io/emerald-ai-wiki/emerald-components-optional/target-position-modifier-component/setting-up-the-tpm-component-on-a-player.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.
