↧
Answer by deltamish
Hi, May i suggest you to use raycastgun because it is way better and you can add penetration too Heres is the damage script var health:float = 90; function Damage(dmg:float){ health -= dmg; } function...
View ArticleAnswer by Jrocker2002
To do a death code use this if(health <= 0) { //Play a death anim or }
View ArticleAnswer by skiedude
I'd also look into https://unity3d.com/learn/tutorials/projects/survival-shooter-tutorial its a follow along tutorial by Unity a couple years ago (check the attached PDF in the assets for specific...
View Article