trigger question

whats the best way of setting up an effect where a target is hit by a bullet
that it triggers a fire or smoke effect when hit.

thanks

wayne

If your bullet is a physical object that has a rigidbody and will come into contact with the person, you could do something like this:

void OnCollisionEnter(Collision collide)
{
    if (collide.gameObject.tag == "target")
    {
        Instantiate(smokeEffectPrefab, transform.position, Quaternion.identity);
        Destroy(this.gameObject);
    }
}