> For the complete documentation index, see [llms.txt](https://malbersanimations.gitbook.io/animal-controller/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://malbersanimations.gitbook.io/animal-controller/secondary-components/respawnernpc.md).

# Respawner NPC

## Overview

This component allows an AI Character to respawn after it died. Works similarly to the Respawner component.

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

## How it works

It will listen to the states this character has, and if the character activates **Death** State it will reset the Animal Controller after a given time. It also teleports the animal to this GameObject position.

&#x20;

## Parameters

### NPC

&#x20;Reference for the AI Animal.&#x20;

You can assign a Prefab here, without having an animal on the scene.  This will automatically instantiate the animal on Start.

### Respawn State

State on which the Animal will be respawned. If this parameter is empty. it will use the Default State (Idle)

### Respawn Time

Time needed to restart the game or respawn the animal, after the animal died.

### Destroy After Respawn

If the NPC is a Prefab. It will leave behind the Death Animal mesh. Set true this parameter to remove the dead character.

### On Restart Game

Invoked when the Scene is restarted.
