I currently have my gun setup in my FPS game so that the player can shoot, a muzzle flash occurs, and there is a blood particle system instantiated when the player shoots at the enemy. all I can't figure out now is how to take down the health variable of the enemy one by one each time the enemy is shot!!!!!
Here is my gun script!:
That all works good!, but how would i take down the health of the enemy tagged "zombie" when it hits it. The zombie has a script on it called "zombie" and a health variable called "health" if that matters!
asked Dec 23 '11 at 01:08 AM
I suppose the easiest way would be to use
answered Dec 23 '11 at 11:35 AM