var fallout : GameObject;
function OnControllerColliderHit (hit: ControllerColliderHit)
{
if(hit.gameObject.tag == “death”)
{
transform.position = fallout.position;
}
}
var fallout : GameObject;
function OnControllerColliderHit (hit: ControllerColliderHit)
{
if(hit.gameObject.tag == “death”)
{
transform.position = fallout.position;
}
}
I think you have a script error here. Try changing fallout to:
var fallout : Transform;