Hello, I wish to create a death trigger that will kill the player upon collision and reload the game (Application.LoadLevel(0))
Does anyone have a script for this?
1 Answer
1I have one, but it doesn’t function properly for me
void OnTriggerEnter(Collider other)
{
if (other.tag == "Player")
{
// Player entered red zone, reload game.
Application.LoadLevel(0);
}
}
}
Why not make your own script?
– StormizinCan't quite figure it out. I made a reload button that works, but I'm not sure how to apply that to an object.
– FatalVitality