Death trigger

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?

Why not make your own script?

–

Can't quite figure it out. I made a reload button that works, but I'm not sure how to apply that to an object.

–

1 Answer

1

I 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);
			}
		}
	
}

Worked for me thanks

–