# Respawn

> Aego 0.12.5 · development; docs build `4a32b816933e02930662f6a443cb25abe6050d090c55e237cbff5c44ae9b25f8`. [Build manifest](/docs-build.json).

```
component gameplay.Respawn
```

Brings the node back to its respawn point after death or Trigger. The first point is where the node starts.

## Fields

| Name | Script name | Type | Default | Description |
|---|---|---|---|---|
| Delay | `Delay` | `float` | `0.5` | Seconds of game time before the node comes back. |
| Restore Health | `RestoreHealth` | `bool` | `true` | Revives Health with full hit points. |
| Reset Velocity | `ResetVelocity` | `bool` | `true` | Stops a Motion 2D on respawn. |
| Persist | `Persist` | `bool` | `false` | Saves the respawn point with the game. |

## SetPoint

```
func (Respawn) SetPoint(position Vec2)
```

Sets the respawn point.

## Trigger

```
func (Respawn) Trigger()
```

Respawns the node after Delay.

## Respawned

```
signal Respawned()
```

Fires when the node is back at its point.
