> For the complete documentation index, see [llms.txt](https://espergames.gitbook.io/inventool/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://espergames.gitbook.io/inventool/components/overworld-merchant.md). Agents can also search and read this documentation through its [MCP server](https://espergames.gitbook.io/inventool/~gitbook/mcp).

# Overworld Merchant

A merchant in the game world that can be interacted with.

<figure><img src="https://658062748-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkBIjnmm9A7LqfwoDhaeR%2Fuploads%2FLVgFHI7ZCw4UbBwCTiRi%2Fimage.png?alt=media&amp;token=99bc5d5e-4b0d-4d20-86e1-5cfd7875d348" alt=""><figcaption></figcaption></figure>

Adding this component to a character or GameObject will allow it to function as a **merchant**. It supports both **2D and 3D collisions**.

{% hint style="info" icon="hand-back-point-up" %}
It's recommended to attach a trigger collider for interaction purposes.
{% endhint %}

You have more control of this component through code! Visit the scripting section for more information.

{% content-ref url="/pages/N3FXJysSJ5FUA2eiIUQy" %}
[Overworld Merchant](https://espergames.gitbook.io/inventool/scripting/merchants/overworld-merchant.md)
{% endcontent-ref %}

## Properties

| Name               | Description                                                                                                                                                                                                                                                                                 |
| ------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Merchant           | The merchant reference.                                                                                                                                                                                                                                                                     |
| In Range Indicator | An object that is enabled when the player is in range of the merchant.                                                                                                                                                                                                                      |
| On Interact        | A callback for when this merchant is interacted with.                                                                                                                                                                                                                                       |
| On Entered Range   | A callback for when the player enters the range of the merchant. The merchant must have a trigger collider, and you must let Inventool know what transform belongs to the player. See [Inventool Initializer](https://espergames.gitbook.io/inventool/components/inventool-initializer.md). |
| On Exited Range    | A callback for when the player exits the range of the merchant. The merchant must have a trigger collider, and you must let Inventool know what transform belongs to the player. See [Inventool Initializer](https://espergames.gitbook.io/inventool/components/inventool-initializer.md).  |
