Respawn same place on restart
Posted: Sun Nov 14, 2021 1:19 pm
Hello Toni
In this script':
How can i controll it to respawn at the first/staring point on death? Right now if he dies at the begining he respawns from a save game else where.
thanks
In this script':
Code: Select all
private void ReloadOnDeath(GameObject player)
{
if (SaveSystem.HasSavedGameInSlot(checkpointSaveSlot))
{
SaveSystem.LoadFromSlot(checkpointSaveSlot);
}
else
{
// Show load game menu? Go to main menu? etc. (Add your code)
}
}
}
thanks