Some how i need to clone the effect of continue explosion effect. Can someone teach me some way of doing it. Thx alot. Below is my script for explosion. some how i make some changers in the detonator in duration in smoke. It is not the effect that i wanted. so i need to clone the explosion.
var explosion : Transform;
var sound1 :AudioClip;
var audio1: AudioSource;
function OnCollisionEnter(Col : Collision){
var aSources = GetComponents(AudioSource);
audio1 = aSources[1];
if(Col.gameObject.name == "Terrain")
{
if(occur == true)
{
var explosion1 : Transform;
explosion1 = Instantiate(explosion,transform.position,transform.rotation);
audio1.PlayOneShot(sound1);
}
}
}