|
Hey this is simple and I am confused when I want to shoot I want an explosion coming out of the barrel. "Spawnpoint" actually. Here is my SHOOT script
(comments are locked)
|
|
You just Instantiate a particle emitter. Like so:
(comments are locked)
|
|
Okay here is what you can do this: var projectile : Transform; var speed = (whatever you want); var explosion : Transform; function Update () {
{
var Exp = Instantiate(explosion, transform.Find("Spawnpoint").transform.position, Quaternion.identity); clone.rigidbody.Addforce(transform.forward * speed); } }
(comments are locked)
|
