# Set Up Ninja Bot

> For the complete documentation index, see [llms.txt](llms.txt).

## Prerequisites

Start with an Unreal project and a level where you can move a player character. For the first walkthrough, the bot needs navigable ground and a clear line of sight to the player.

## Setup Checklist

| Step | When you need it | Where to go |
| --- | --- | --- |
| Install and enable Ninja Bot. | Every project | [Install plugins](installing-plugins.html) |
| Add module dependencies for the Ninja Bot classes you use. | C++ projects that reference those classes | [Work with plugin source](installing-plugins.html) |
| Register the primary asset type BotSetupData and the folder where you will save your bot setups. | Every project | [Asset Manager](asset-manager.html) |
| Check project-wide AI settings. | When changing perception defaults or diagnosing an inactive bot | See below. |

## Choose Which Pawns Can Be Seen

Unreal registers pawns as sight sources by default. You can keep this for the first walkthrough. If you want to choose exactly which pawns participate, add the following to your project's `DefaultEngine.ini`.

```INI
[/Script/AIModule.AISense_Sight]
bAutoRegisterAllPawnsAsSources=false

[/Script/AIModule.AISense_Hearing]
bAutoRegisterAllPawnsAsSources=false
```

With automatic registration off, add an AI Perception Stimuli Source component to the player pawn, enable automatic registration on the component, and add AI Sight to its registered senses.

![Sight registered on the player's stimuli source](Documentation/bot_setup_stimuli_source.png)

Under Edit → Project Settings → AI System, Forget Stale Actors lets Unreal clear perception records after their stimuli expire. The bot's Awareness Profile controls how quickly its suspicion fades during play.

## Before You Press Play

In Edit → Project Settings → Ninja Bot, leave Disable Logic off. You can keep the default Team Provider Class while learning how sight works. Continue to [First Steps](bot-first-steps.html).

