- Home /
Question by
Alex 9 · Mar 27, 2011 at 09:27 PM ·
collisionfpsshootingprojectile
Gun Fire, sparks on Collision
I am working on an fps. The gun fires an invisible projectile. How do i make sparks on an object like a wall when the projectile hits it.
Comment
Best Answer
Answer by AngryOldMan · Mar 27, 2011 at 09:40 PM
use an OnCollision function and under it instantiate a spark prefab. Pay attention to the second section of code, it's pretty much what you're after.
Your answer
Follow this Question
Related Questions
Projectile Firing/Gun script 1 Answer
[Solved]Shoot a projectile towards a target location. 3 Answers
Bullet Collision in Networking Game. 0 Answers
When I kill one enemy, they all die? 0 Answers