Easy question. No answer (sparks)

…sigh cant figure out of to make it so when the bullet hits something a sparks prefab is displayed… and yet seems so simple. i cant figure it out ><

var lifetime = 5.0;

function Update ()

{

Destroy (gameObject, lifetime);

}

function OnCollisionEnter(hit : Collision)

{ Destroy(gameObject);

}

There is an example of how to do this in the documentation here.

Simply substitute the spark prefab that comes in the standard assets for the explosion one.

swweeet. thanks dude, yeah i didnt see that >.<