Fall Death

Im trying to kill the player via falling. Does this make sense or am i totally off?

private var dead = false;

function OnControllerColliderHit(hit : ControllerColliderHit)
{
if(hit.gameObject.tag == “FallDeath”)
{
dead = true;
}
}

function Update()
{
if(dead)
{
transform.position = Vector3(0,4,0);
}
}

What if you try it, does it work? if it works, then it is the way but it probably does not work as you never set the dead boolean back to false so your guy is always sent back to the origin.

function Update() { 
  if(dead) { 
    transform.position = Vector3(0,4,0); 
    dead = false;
  }
}