help a newbie. render enabled after a certain amount of time

hi
i need some help on scripting. here is my script for an object that will disappear when hit by a projectile:

function OnTriggerEnter( hit : Collider )
{
if(hit.gameObject.tag == “BarProjectile”)
{

renderer.enabled = false;

}
}

my question is what do i need to add so that the object will reappear after a certain amount of time?

This was just a guess but may lead you in the right direction. :smile:

var startTime = false;
var hideTime = Time.deltaTime;

function OnTriggerEnter( hit : Collider ){ 
if(hit.gameObject.tag == "BarProjectile"){ 
renderer.enabled = false; 
hideTime = 0.0
startTime = true;  
} 
} 
function FixedUpdate(){
if(startTime)(hideTime>=5.0){
renderer.enabled = true;
}
if(hideTime>=6.0){
startTime = false;
hideTime =0.0;
}
}

:smile:

thanks! =D