# iMove NPC

## iMove NPC  <img src="/files/Js5Ti8shDPWq8ZqIHFjp" alt="" data-size="line">

The iMove NPC component controlls the navmesh agent or NPC. You can access this script via code to tell your NPC where to go and what to do.

<div align="left"><figure><img src="/files/E1EnUSVT8bK0trhzcZIk" alt="" width="401"><figcaption></figcaption></figure></div>

## GVS\_NPC Example Simple Waypoint Controller

Using iMove NPC paired with GVS Example Simple Waypoint Controller is a great way to get your NPC's up and running.

<div align="left"><figure><img src="/files/noZfluIjg122rOCFLXtH" alt="" width="400"><figcaption></figcaption></figure></div>

## NavMesh Agent

To use an NPC or agent, you need Unity's NavMesh agent attached to your player, and your terrain needs a NavMesh Surface baked onto it. See the [**NavMesh Agents page**](/imove/integrations/navmesh-agents.md) for more info.

## iMove

If you want your player to be a player and also be able to move like an NPC or agent for getting to places like sitting, walking, etc.. Ensure both isPlayer and isNPC are checked within the iMove component.&#x20;

If you only want your "player" object to be an NPC, the only check isNPC:&#x20;

<div align="left"><figure><img src="/files/2Wz65JoPCF2t9g3QQlB9" alt="" width="186"><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://glass-vault-studio.gitbook.io/imove/components/imove-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.
