# Friendly NPC

{% hint style="success" %}
**COPY/PASTE PARAMETERS**

New in GM 0.11! Right click on a behaviour or component to copy. Then open an object, add the same behaviour or component, and right click it to paste identical parameter settings.
{% endhint %}

{% hint style="info" %}
[Build Singleplayer & Multiplayer Logic](/en/creator/game-maker/docs/build-singleplayer-and-multiplayer-logic.md) - about <mark style="color:green;">**\[SP]**</mark> or <mark style="color:yellow;">**\[MP]**</mark> behaviours or components.
{% endhint %}

## <img src="/files/0gZ6Kkqx8jFlw7xSVIBG" alt="" data-size="line"> Friendly NPC <mark style="color:yellow;">**\[MP]**</mark>

* Assign non-hostile NPC actions like healing, farming, and walking around.

{% hint style="info" %}
In the first iteration of this behaviour (GM 0.11), only walk and flee modules are included. More modules are in development.
{% endhint %}

### Common Uses

* Trigger part of an NPC's behavior when needed, with specific settings
* Vary movement zone and speed when a module is triggered to take action
* Set up how an NPC should interact with players and objects per module

## How it Works

### Trigger: On start or multiple messages

### Action: Varies per module added

## Parameter Notes

Modules can be added depending on the way you want the NPC to interact with objects and players in the game world. Add a module, then click on it to edit its logic.

<div><figure><img src="/files/DdjvDjMsCSLdvex97qnP" alt="" width="324"><figcaption><p> Main View</p></figcaption></figure> <figure><img src="/files/YRgDLAWXH3F3OQV6xGIq" alt=""><figcaption><p>Walk module</p></figcaption></figure> <figure><img src="/files/0Rqpu9uXbqzfS99hW2TH" alt=""><figcaption><p>Flee module</p></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://docs.sandbox.game/en/creator/game-maker/docs/behaviours/npc-ai-pawns/friendly-npc.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.
