🚩Respawner NPC

Overview

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

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.

Parameters

NPC

Reference for the AI Animal.

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.

Last updated